@polkadot/types-create 9.12.1 → 9.13.2

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.
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@polkadot/types-create',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '9.12.1'
16
+ version: '9.13.2'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.12.1",
23
+ "version": "9.13.2",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -121,7 +121,7 @@
121
121
  },
122
122
  "dependencies": {
123
123
  "@babel/runtime": "^7.20.13",
124
- "@polkadot/types-codec": "9.12.1",
125
- "@polkadot/util": "^10.2.6"
124
+ "@polkadot/types-codec": "9.13.2",
125
+ "@polkadot/util": "^10.3.1"
126
126
  }
127
127
  }
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@polkadot/types-create',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '9.12.1'
10
+ version: '9.13.2'
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import '@polkadot/types-codec/types/registry';
2
- import type { Codec, CodecClass, ICompact, INumber } from '@polkadot/types-codec/types';
2
+ import type { Codec, CodecClass, ICompact, INumber, LookupString } from '@polkadot/types-codec/types';
3
3
  import type { ILookup, TypeDef } from '@polkadot/types-create/types';
4
4
  declare module '@polkadot/types-codec/types/registry' {
5
5
  interface Registry {
6
6
  readonly lookup: ILookup;
7
- createLookupType(lookupId: ICompact<INumber> | number): string;
8
- setLookup(lookup: ILookup): void;
7
+ createLookupType(lookupId: ICompact<INumber> | number): LookupString;
9
8
  getUnsafe<T extends Codec = Codec, K extends string = string>(name: K, withUnknown?: boolean, knownTypeDef?: TypeDef): CodecClass<T> | undefined;
9
+ setLookup(lookup: ILookup): void;
10
10
  }
11
11
  }
package/types/lookup.d.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  import type { Option, Text } from '@polkadot/types-codec';
2
- import type { ICompact, INumber } from '@polkadot/types-codec/types';
2
+ import type { ICompact, INumber, LookupString } from '@polkadot/types-codec/types';
3
3
  import type { TypeDef } from './types';
4
- export interface ILookup {
5
- getSiType(lookupId: ICompact<INumber> | string | number): {
6
- def: {
7
- asTuple: ICompact<INumber>[];
8
- };
4
+ interface SiTypeBase {
5
+ def: {
6
+ asTuple: ICompact<INumber>[];
9
7
  };
10
- getTypeDef(lookupId: ICompact<INumber> | string | number): TypeDef;
8
+ }
9
+ export interface ILookup {
10
+ getSiType(lookupId: ICompact<INumber> | LookupString | number): SiTypeBase;
11
+ getTypeDef(lookupId: ICompact<INumber> | LookupString | number): TypeDef;
11
12
  sanitizeField(name: Option<Text>): [string | null, string | null];
12
13
  }
14
+ export {};