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:
iiiiiiii
2021-03-05 09:36:01 +01:00
committed by GitHub
co-authored by Jaco Greeff
parent 0e76271dba
commit 7906ae63dc
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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;
}
+1
View File
@@ -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;