@polkadot/types-codec 10.7.3 → 10.9.1

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.
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/types-codec', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.7.3' };
4
+ exports.packageInfo = { name: '@polkadot/types-codec', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.9.1' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/detectPackage.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "10.7.3",
21
+ "version": "10.9.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -516,8 +516,8 @@
516
516
  }
517
517
  },
518
518
  "dependencies": {
519
- "@polkadot/util": "^12.2.1",
520
- "@polkadot/x-bigint": "^12.2.1",
521
- "tslib": "^2.5.2"
519
+ "@polkadot/util": "^12.3.1",
520
+ "@polkadot/x-bigint": "^12.3.1",
521
+ "tslib": "^2.5.3"
522
522
  }
523
523
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/types-codec', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.7.3' };
1
+ export const packageInfo = { name: '@polkadot/types-codec', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.9.1' };
@@ -1,5 +1,5 @@
1
1
  import { Float } from '../native/Float.js';
2
- declare const f32_base: import("../types/codec.js").CodecClass<Float>;
2
+ declare const f32_base: import("../types/codec.js").CodecClass<Float, any[]>;
3
3
  /**
4
4
  * @name f32
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { Float } from '../native/Float.js';
2
- declare const f64_base: import("../types/codec.js").CodecClass<Float>;
2
+ declare const f64_base: import("../types/codec.js").CodecClass<Float, any[]>;
3
3
  /**
4
4
  * @name f64
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { Int } from '../base/Int.js';
2
- declare const i128_base: import("../types/codec.js").CodecClass<Int>;
2
+ declare const i128_base: import("../types/codec.js").CodecClass<Int, any[]>;
3
3
  /**
4
4
  * @name i128
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { Int } from '../base/Int.js';
2
- declare const i16_base: import("../types/codec.js").CodecClass<Int>;
2
+ declare const i16_base: import("../types/codec.js").CodecClass<Int, any[]>;
3
3
  /**
4
4
  * @name i16
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { Int } from '../base/Int.js';
2
- declare const i256_base: import("../types/codec.js").CodecClass<Int>;
2
+ declare const i256_base: import("../types/codec.js").CodecClass<Int, any[]>;
3
3
  /**
4
4
  * @name i256
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { Int } from '../base/Int.js';
2
- declare const i32_base: import("../types/codec.js").CodecClass<Int>;
2
+ declare const i32_base: import("../types/codec.js").CodecClass<Int, any[]>;
3
3
  /**
4
4
  * @name i32
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { Int } from '../base/Int.js';
2
- declare const i64_base: import("../types/codec.js").CodecClass<Int>;
2
+ declare const i64_base: import("../types/codec.js").CodecClass<Int, any[]>;
3
3
  /**
4
4
  * @name i64
5
5
  * @description
package/primitive/I8.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Int } from '../base/Int.js';
2
- declare const i8_base: import("../types/codec.js").CodecClass<Int>;
2
+ declare const i8_base: import("../types/codec.js").CodecClass<Int, any[]>;
3
3
  /**
4
4
  * @name i8
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { UInt } from '../base/UInt.js';
2
- declare const u128_base: import("../types/codec.js").CodecClass<UInt>;
2
+ declare const u128_base: import("../types/codec.js").CodecClass<UInt, any[]>;
3
3
  /**
4
4
  * @name u128
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { UInt } from '../base/UInt.js';
2
- declare const u16_base: import("../types/codec.js").CodecClass<UInt>;
2
+ declare const u16_base: import("../types/codec.js").CodecClass<UInt, any[]>;
3
3
  /**
4
4
  * @name u16
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { UInt } from '../base/UInt.js';
2
- declare const u256_base: import("../types/codec.js").CodecClass<UInt>;
2
+ declare const u256_base: import("../types/codec.js").CodecClass<UInt, any[]>;
3
3
  /**
4
4
  * @name u256
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { UInt } from '../base/UInt.js';
2
- declare const u32_base: import("../types/codec.js").CodecClass<UInt>;
2
+ declare const u32_base: import("../types/codec.js").CodecClass<UInt, any[]>;
3
3
  /**
4
4
  * @name u32
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import { UInt } from '../base/UInt.js';
2
- declare const u64_base: import("../types/codec.js").CodecClass<UInt>;
2
+ declare const u64_base: import("../types/codec.js").CodecClass<UInt, any[]>;
3
3
  /**
4
4
  * @name u64
5
5
  * @description
package/primitive/U8.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { UInt } from '../base/UInt.js';
2
- declare const u8_base: import("../types/codec.js").CodecClass<UInt>;
2
+ declare const u8_base: import("../types/codec.js").CodecClass<UInt, any[]>;
3
3
  /**
4
4
  * @name u8
5
5
  * @description
package/types/codec.d.ts CHANGED
@@ -95,12 +95,12 @@ export interface Codec {
95
95
  */
96
96
  toU8a(isBare?: BareOpts): Uint8Array;
97
97
  }
98
- export interface CodecClass<T = Codec> {
98
+ export interface CodecClass<T = Codec, A extends unknown[] = any[]> {
99
99
  /**
100
100
  * @description An internal fallback type (previous generation) if encoding fails
101
101
  */
102
102
  readonly __fallbackType?: string;
103
- new (registry: Registry, ...args: any[]): T;
103
+ new (registry: Registry, ...args: A): T;
104
104
  }
105
105
  export interface CodecObject<T extends ToString> extends Codec {
106
106
  readonly $: T;