From 2bdb34d78d2f8e76b1d3df1d6e1a7b334e7c6d72 Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Fri, 2 Nov 2018 14:49:52 +0000 Subject: [PATCH] fix: Correctly type bluebird promises in application-manager typings Signed-off-by: Cameron Diver --- src/application-manager.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/application-manager.d.ts b/src/application-manager.d.ts index 99b771e3..a4575943 100644 --- a/src/application-manager.d.ts +++ b/src/application-manager.d.ts @@ -1,3 +1,4 @@ +import * as Bluebird from 'bluebird'; import { EventEmitter } from 'events'; import { ServiceAction } from './device-api/common'; @@ -40,7 +41,7 @@ export class ApplicationManager extends EventEmitter { public db: DB; public images: Images; - public getCurrentApp(appId: number): Promise; + public getCurrentApp(appId: number): Bluebird; // TODO: This actually returns an object, but we don't need the values just yet public setTargetVolatileForService(serviceId: number, opts: Options): void; @@ -48,11 +49,11 @@ export class ApplicationManager extends EventEmitter { public executeStepAction( serviceAction: ServiceAction, opts: Options, - ): Promise; + ): Bluebird; public getStatus(): Promise; - public serviceNameFromId(serviceId: number): Promise; + public serviceNameFromId(serviceId: number): Bluebird; } export default ApplicationManager;