From 3e7b90b3fe60eba83121629d37e8146b360aedce Mon Sep 17 00:00:00 2001 From: Benjamin Bours Date: Thu, 6 Oct 2022 10:52:24 +0100 Subject: [PATCH 1/2] Expose explorer types to ease development of library's consumer. --- src/API/Explorer/index.ts | 2 ++ src/index.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/API/Explorer/index.ts b/src/API/Explorer/index.ts index 80d8682..0380bcc 100644 --- a/src/API/Explorer/index.ts +++ b/src/API/Explorer/index.ts @@ -256,3 +256,5 @@ export default class ExplorerApi { return parseInt(res, 10); } } + +export * from './Objects'; \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 9137ef3..46b18fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,3 +11,5 @@ export { RpcApi, ExplorerApi, ObjectSchema, deserialize, serialize, ParserTypes, RpcActionGenerator, ExplorerActionGenerator, ActionGenerator }; + +export * from './API/Explorer'; \ No newline at end of file From 3f4f4cfe3c73f3513dba3137fdbef7180b5aaaad Mon Sep 17 00:00:00 2001 From: Benjamin Bours Date: Thu, 6 Oct 2022 23:49:36 +0100 Subject: [PATCH 2/2] Add missing property in type --- src/API/Explorer/Objects.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/Explorer/Objects.ts b/src/API/Explorer/Objects.ts index 7fbfd29..c358302 100644 --- a/src/API/Explorer/Objects.ts +++ b/src/API/Explorer/Objects.ts @@ -148,7 +148,7 @@ export interface ITemplateStats { export interface IAccountStats { collections: Array<{collection: ICollection, assets: string}>; - templates: Array<{template_id: string, assets: string}>; + templates: Array<{template_id: string, assets: string; collection_name: string}>; assets: string; }