Refactor status activation

This commit is contained in:
Aleksey Kladov 2019-12-31 17:22:43 +01:00
parent 1327aed7f6
commit e4b588868f
5 changed files with 36 additions and 43 deletions

View file

@ -84,6 +84,11 @@ export class Ctx {
}
throw 'unreachable';
}
onNotification(method: string, handler: lc.GenericNotificationHandler) {
this.client.onReady()
.then(() => this.client.onNotification(method, handler))
}
}
export type Cmd = (...args: any[]) => any;