@polkadot/types-create 6.12.2-19 → 6.12.2-23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -20,10 +20,11 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "6.12.2-19",
23
+ "version": "6.12.2-23",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.5",
27
+ "@polkadot/types-codec": "6.12.2-23",
27
28
  "@polkadot/util": "^8.2.2"
28
29
  },
29
30
  "exports": {
@@ -35,7 +36,6 @@
35
36
  "require": "./bundle.cjs",
36
37
  "default": "./bundle.js"
37
38
  },
38
- "./bundle.d.ts": "./bundle.d.ts",
39
39
  "./create": {
40
40
  "require": "./create/index.cjs",
41
41
  "default": "./create/index.js"
@@ -44,30 +44,23 @@
44
44
  "require": "./create/class.cjs",
45
45
  "default": "./create/class.js"
46
46
  },
47
- "./create/class.d.ts": "./create/class.d.ts",
48
- "./create/index.d.ts": "./create/index.d.ts",
49
47
  "./create/type": {
50
48
  "require": "./create/type.cjs",
51
49
  "default": "./create/type.js"
52
50
  },
53
- "./create/type.d.ts": "./create/type.d.ts",
54
51
  "./detectPackage": {
55
52
  "require": "./detectPackage.cjs",
56
53
  "default": "./detectPackage.js"
57
54
  },
58
- "./detectPackage.d.ts": "./detectPackage.d.ts",
59
- "./index.d.ts": "./index.d.ts",
60
55
  "./package.json": "./package.json",
61
56
  "./packageInfo": {
62
57
  "require": "./packageInfo.cjs",
63
58
  "default": "./packageInfo.js"
64
59
  },
65
- "./packageInfo.d.ts": "./packageInfo.d.ts",
66
60
  "./types": {
67
61
  "require": "./types.cjs",
68
62
  "default": "./types.js"
69
63
  },
70
- "./types.d.ts": "./types.d.ts",
71
64
  "./util": {
72
65
  "require": "./util/index.cjs",
73
66
  "default": "./util/index.js"
@@ -76,22 +69,17 @@
76
69
  "require": "./util/encodeTypes.cjs",
77
70
  "default": "./util/encodeTypes.js"
78
71
  },
79
- "./util/encodeTypes.d.ts": "./util/encodeTypes.d.ts",
80
72
  "./util/getTypeDef": {
81
73
  "require": "./util/getTypeDef.cjs",
82
74
  "default": "./util/getTypeDef.js"
83
75
  },
84
- "./util/getTypeDef.d.ts": "./util/getTypeDef.d.ts",
85
- "./util/index.d.ts": "./util/index.d.ts",
86
76
  "./util/typeSplit": {
87
77
  "require": "./util/typeSplit.cjs",
88
78
  "default": "./util/typeSplit.js"
89
79
  },
90
- "./util/typeSplit.d.ts": "./util/typeSplit.d.ts",
91
80
  "./util/xcm": {
92
81
  "require": "./util/xcm.cjs",
93
82
  "default": "./util/xcm.js"
94
- },
95
- "./util/xcm.d.ts": "./util/xcm.d.ts"
83
+ }
96
84
  }
97
85
  }
package/packageInfo.cjs CHANGED
@@ -9,6 +9,6 @@ exports.packageInfo = void 0;
9
9
  // Auto-generated by @polkadot/dev, do not edit
10
10
  const packageInfo = {
11
11
  name: '@polkadot/types-create',
12
- version: '6.12.2-19'
12
+ version: '6.12.2-23'
13
13
  };
14
14
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -3,5 +3,5 @@
3
3
  // Auto-generated by @polkadot/dev, do not edit
4
4
  export const packageInfo = {
5
5
  name: '@polkadot/types-create',
6
- version: '6.12.2-19'
6
+ version: '6.12.2-23'
7
7
  };
package/bundle.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { packageInfo } from './packageInfo';
2
- export { TypeDefInfo } from './types';
3
- export * from './create';
4
- export * from './util';
package/create/class.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import type { Codec, CodecClass, CodecRegistry } from '@polkadot/types-codec/types';
2
- import type { TypeDef } from '../types';
3
- export declare function constructTypeClass<T extends Codec = Codec>(registry: CodecRegistry, typeDef: TypeDef): CodecClass<T>;
4
- export declare function getTypeClass<T extends Codec = Codec>(registry: CodecRegistry, typeDef: TypeDef): CodecClass<T>;
5
- export declare function createClassUnsafe<T extends Codec = Codec, K extends string = string>(registry: CodecRegistry, type: K): CodecClass<T>;
package/create/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './class';
2
- export * from './type';
package/create/type.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { Codec, CodecRegistry } from '@polkadot/types-codec/types';
2
- import type { CreateOptions } from '../types';
3
- export declare function createTypeUnsafe<T extends Codec = Codec, K extends string = string>(registry: CodecRegistry, type: K, params?: unknown[], options?: CreateOptions): T;
@@ -1 +0,0 @@
1
- export {};
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import './detectPackage';
2
- export * from './bundle';
package/packageInfo.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare const packageInfo: {
2
- name: string;
3
- version: string;
4
- };
package/types.d.ts DELETED
@@ -1,57 +0,0 @@
1
- import type { Codec, CodecClass, CodecRegistry, ICompact, INumber } from '@polkadot/types-codec/types';
2
- export type { CodecCreateOptions as CreateOptions } from '@polkadot/types-codec/types';
3
- export declare enum TypeDefInfo {
4
- BTreeMap = 0,
5
- BTreeSet = 1,
6
- Compact = 2,
7
- DoNotConstruct = 3,
8
- Enum = 4,
9
- HashMap = 5,
10
- Int = 6,
11
- Linkage = 7,
12
- Null = 8,
13
- Option = 9,
14
- Plain = 10,
15
- Range = 11,
16
- Result = 12,
17
- Set = 13,
18
- Si = 14,
19
- Struct = 15,
20
- Tuple = 16,
21
- UInt = 17,
22
- Vec = 18,
23
- VecFixed = 19,
24
- WrapperOpaque = 20
25
- }
26
- export interface TypeDef {
27
- alias?: Map<string, string>;
28
- displayName?: string;
29
- docs?: string[];
30
- fallbackType?: string;
31
- info: TypeDefInfo;
32
- index?: number;
33
- isFromSi?: boolean;
34
- length?: number;
35
- lookupIndex?: number;
36
- lookupName?: string;
37
- lookupNameRoot?: string;
38
- name?: string;
39
- namespace?: string;
40
- sub?: TypeDef | TypeDef[];
41
- type: string;
42
- typeName?: string;
43
- }
44
- export interface ILookup {
45
- getSiType(lookupId: ICompact<INumber> | string | number): {
46
- def: {
47
- asTuple: ICompact<INumber>[];
48
- };
49
- };
50
- getTypeDef(lookupId: ICompact<INumber> | string | number): TypeDef;
51
- }
52
- export interface CreateRegistry extends CodecRegistry {
53
- lookup: ILookup;
54
- createLookupType(lookupId: ICompact<INumber> | number): string;
55
- setLookup(lookup: ILookup): void;
56
- getUnsafe<T extends Codec = Codec, K extends string = string>(name: K, withUnknown?: boolean, knownTypeDef?: TypeDef): CodecClass<T> | undefined;
57
- }
@@ -1,5 +0,0 @@
1
- import type { CodecRegistry } from '@polkadot/types-codec/types';
2
- import type { TypeDef } from '@polkadot/types-create/types';
3
- export declare function paramsNotation<T>(outer: string, inner?: T | T[], transform?: (_: T) => string): string;
4
- export declare function encodeTypeDef(CodecRegistry: CodecRegistry, typeDef: TypeDef): string;
5
- export declare function withTypeString(CodecRegistry: CodecRegistry, typeDef: Omit<TypeDef, 'type'>): TypeDef;
@@ -1,7 +0,0 @@
1
- import type { TypeDef } from '@polkadot/types-create/types';
2
- interface TypeDefOptions {
3
- name?: string;
4
- displayName?: string;
5
- }
6
- export declare function getTypeDef(_type: String | string, { displayName, name }?: TypeDefOptions, count?: number): TypeDef;
7
- export {};
package/util/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './encodeTypes';
2
- export * from './getTypeDef';
3
- export * from './typeSplit';
4
- export * from './xcm';
@@ -1 +0,0 @@
1
- export declare function typeSplit(type: string): string[];
package/util/xcm.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const XCM_MAPPINGS: string[];
2
- export declare function mapXcmTypes(version: 'V0' | 'V1' | 'V2'): Record<string, string>;