From 07aa1cbf5cfabf25112eefedaff996f6f6fe7814 Mon Sep 17 00:00:00 2001 From: Yash Ladha Date: Fri, 24 Jan 2020 14:41:44 +0530 Subject: [PATCH] Error type in callback --- index.d.ts | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 6f1a3d6..6e69b56 100644 --- a/index.d.ts +++ b/index.d.ts @@ -19,9 +19,11 @@ declare module "browserstack-local" { [key: string]: string | boolean; } + type LocalOptions = Partial; + class Local { - start(options: Partial, callback: (error?: Error) => void): void; + start(options: LocalOptions, callback: (error?: Error) => void): void; isRunning(): boolean; - stop(callback: () => void): void; + stop(callback: (error?: Error) => void): void; } } diff --git a/package.json b/package.json index ded8400..ce93a59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "browserstack-local", - "version": "1.4.5", + "version": "1.4.6", "description": "Nodejs bindings for BrowserStack Local", "engine": "^0.10.44", "main": "index.js",