Adjust create imports (#2834)
* Adjust create imports * Restore create root exports * Adjust unsafe creation
This commit is contained in:
@@ -27,6 +27,3 @@ export { default as Int } from './Int';
|
||||
export { default as Raw } from './Raw';
|
||||
export { default as UInt } from './UInt';
|
||||
export { default as U8aFixed } from './U8aFixed';
|
||||
|
||||
// Type management helper functions
|
||||
export * from './utils/encodeTypes';
|
||||
|
||||
@@ -7,5 +7,3 @@ export { compareSet } from './compareSet';
|
||||
export { decodeU8a } from './decodeU8a';
|
||||
export { mapToTypeMap } from './mapToTypeMap';
|
||||
export { typeToConstructor } from './typeToConstructor';
|
||||
|
||||
export * from './encodeTypes';
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { TypeDef, TypeDefInfo } from '../../create/types';
|
||||
import { TypeDef, TypeDefInfo } from './types';
|
||||
|
||||
import { assert, isNumber, isUndefined } from '@polkadot/util';
|
||||
|
||||
@@ -5,6 +5,7 @@ import { createType } from './createType';
|
||||
|
||||
export * from './createClass';
|
||||
export * from './createType';
|
||||
export * from './encodeTypes';
|
||||
export * from './getTypeDef';
|
||||
export * from './registry';
|
||||
export * from './typeSplit';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
import json from '../../json/StorageChangeSet.001.json';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user