From 17d5affcde0d95a0f548cfc852fa202215c89008 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 28 Jul 2020 16:46:18 +0200 Subject: [PATCH] feat(core): use more explicit result for Browser plugin events --- core/src/core-plugin-definitions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/core-plugin-definitions.ts b/core/src/core-plugin-definitions.ts index 2ca40dcd51..af429142c2 100644 --- a/core/src/core-plugin-definitions.ts +++ b/core/src/core-plugin-definitions.ts @@ -267,11 +267,11 @@ export interface BrowserPlugin extends Plugin { addListener( eventName: 'browserFinished', - listenerFunc: (info: any) => void, + listenerFunc: (info: BrowserInfo) => void, ): PluginListenerHandle; addListener( eventName: 'browserPageLoaded', - listenerFunc: (info: any) => void, + listenerFunc: (info: BrowserInfo) => void, ): PluginListenerHandle; /** * Remove all native listeners for this plugin @@ -279,6 +279,8 @@ export interface BrowserPlugin extends Plugin { removeAllListeners(): void; } +export interface BrowserInfo {} + export interface BrowserOpenOptions { /** * The URL to open the browser to