From 0df6aa78f8546efdeec6c4abad962252cc81a7a8 Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Thu, 20 Aug 2020 12:22:28 +0200 Subject: [PATCH 1/2] Added Promise return option to IAppHost.init() --- src/AppHost.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppHost.ts b/src/AppHost.ts index ea7e75d..ca4572c 100644 --- a/src/AppHost.ts +++ b/src/AppHost.ts @@ -41,7 +41,7 @@ export interface IAppHost { * * _Called once startup_ */ - init(): IAppInfo; + init(): IAppInfo | Promise; /** * A unique and persistent device identifier From 9bc45e1d3ce0922e9183ba9370311436d40f04ea Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Thu, 20 Aug 2020 12:44:07 +0200 Subject: [PATCH 2/2] Fixed typo --- src/AppHost.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppHost.ts b/src/AppHost.ts index ca4572c..7ba6548 100644 --- a/src/AppHost.ts +++ b/src/AppHost.ts @@ -39,7 +39,7 @@ export interface IAppHost { /** * Returns basic info about the app * - * _Called once startup_ + * _Called once on startup_ */ init(): IAppInfo | Promise;