@polkadot/types-codec 8.3.3-7 → 8.3.3-8
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/cjs/packageInfo.js +1 -1
- package/native/Text.d.ts +2 -2
- package/package.json +1 -1
- package/packageInfo.js +1 -1
- package/types/interfaces.d.ts +2 -0
package/cjs/packageInfo.js
CHANGED
package/native/Text.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HexString } from '@polkadot/util/types';
|
|
2
|
-
import type { AnyU8a,
|
|
2
|
+
import type { AnyU8a, Inspect, IText, IU8a, Registry } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* @name Text
|
|
5
5
|
* @description
|
|
@@ -8,7 +8,7 @@ import type { AnyU8a, Codec, Inspect, IU8a, Registry } from '../types';
|
|
|
8
8
|
* object, inheriting all methods exposed from `String`.
|
|
9
9
|
* @noInheritDoc
|
|
10
10
|
*/
|
|
11
|
-
export declare class Text extends String implements
|
|
11
|
+
export declare class Text extends String implements IText {
|
|
12
12
|
#private;
|
|
13
13
|
readonly registry: Registry;
|
|
14
14
|
createdAtHash?: IU8a;
|
package/package.json
CHANGED
package/packageInfo.js
CHANGED
|
@@ -5,5 +5,5 @@ export const packageInfo = {
|
|
|
5
5
|
name: '@polkadot/types-codec',
|
|
6
6
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
7
7
|
type: 'esm',
|
|
8
|
-
version: '8.3.3-
|
|
8
|
+
version: '8.3.3-8'
|
|
9
9
|
};
|
package/types/interfaces.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export interface IStruct<K = string, V extends Codec = Codec> extends Map<K, V>,
|
|
|
47
47
|
getAtIndex(index: number): Codec;
|
|
48
48
|
toArray(): Codec[];
|
|
49
49
|
}
|
|
50
|
+
export interface IText extends String, Codec {
|
|
51
|
+
}
|
|
50
52
|
export declare type ITuple<T extends AnyTuple = Codec[]> = T & Codec;
|
|
51
53
|
export interface IU8a extends Uint8Array, Codec {
|
|
52
54
|
readonly isAscii: boolean;
|