@polkadot/types-codec 6.12.2-4 → 6.12.2-5
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/native/Json.cjs +4 -0
- package/native/Json.d.ts +1 -0
- package/native/Json.js +4 -0
- package/native/Struct.cjs +4 -0
- package/native/Struct.d.ts +1 -0
- package/native/Struct.js +4 -0
- package/package.json +1 -1
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
package/native/Json.cjs
CHANGED
package/native/Json.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class Json extends Map<string, any> implements Codec {
|
|
|
28
28
|
* @description Compares the value of the input to see if there is a match
|
|
29
29
|
*/
|
|
30
30
|
eq(other?: unknown): boolean;
|
|
31
|
+
getT<T>(key: string): T;
|
|
31
32
|
/**
|
|
32
33
|
* @description Unimplemented, will throw
|
|
33
34
|
*/
|
package/native/Json.js
CHANGED
package/native/Struct.cjs
CHANGED
|
@@ -128,6 +128,10 @@ class Struct extends Map {
|
|
|
128
128
|
get defKeys() {
|
|
129
129
|
return Object.keys((0, _classPrivateFieldLooseBase2.default)(this, _Types)[_Types]);
|
|
130
130
|
}
|
|
131
|
+
|
|
132
|
+
getT(key) {
|
|
133
|
+
return this.get(key);
|
|
134
|
+
}
|
|
131
135
|
/**
|
|
132
136
|
* @description Checks if the value is an empty value
|
|
133
137
|
*/
|
package/native/Struct.d.ts
CHANGED
package/native/Struct.js
CHANGED
|
@@ -114,6 +114,10 @@ export class Struct extends Map {
|
|
|
114
114
|
get defKeys() {
|
|
115
115
|
return Object.keys(_classPrivateFieldLooseBase(this, _Types)[_Types]);
|
|
116
116
|
}
|
|
117
|
+
|
|
118
|
+
getT(key) {
|
|
119
|
+
return this.get(key);
|
|
120
|
+
}
|
|
117
121
|
/**
|
|
118
122
|
* @description Checks if the value is an empty value
|
|
119
123
|
*/
|
package/package.json
CHANGED
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED