Make unknownTypes externally accessible (#3263)
* Make unknownTypes externally accessible * fix lint * Update registry.ts * Update registry.ts * Update packages/types/src/types/registry.ts Co-authored-by: Jaco Greeff <jacogr@gmail.com> * Update packages/types/src/create/registry.ts Co-authored-by: Jaco Greeff <jacogr@gmail.com> Co-authored-by: Jaco Greeff <jacogr@gmail.com>
This commit is contained in:
@@ -193,6 +193,10 @@ export class TypeRegistry implements Registry {
|
||||
return this.#knownTypes;
|
||||
}
|
||||
|
||||
public get unknownTypes (): string[] {
|
||||
return [...this.#unknownTypes.keys()];
|
||||
}
|
||||
|
||||
public get signedExtensions (): string[] {
|
||||
return this.#signedExtensions;
|
||||
}
|
||||
|
||||
@@ -98,6 +98,7 @@ export interface Registry {
|
||||
readonly chainSS58: number | undefined;
|
||||
readonly chainTokens: string[];
|
||||
readonly knownTypes: RegisteredTypes;
|
||||
readonly unknownTypes: string[];
|
||||
readonly signedExtensions: string[];
|
||||
|
||||
findMetaCall (callIndex: Uint8Array): CallFunction;
|
||||
|
||||
Reference in New Issue
Block a user