Simplify AbstractThreadService usage (#36972)

This commit is contained in:
Alex Dima
2017-12-13 15:21:09 +01:00
parent 29e57ecfa1
commit 252d49c65b
11 changed files with 26 additions and 73 deletions

View File

@@ -100,6 +100,11 @@ export interface IExtHostContext {
* Register manually created instance.
*/
set<T, R extends T>(identifier: ProxyIdentifier<T>, instance: R): R;
/**
* Assert these identifiers are already registered via `.set`.
*/
assertRegistered(identifiers: ProxyIdentifier<any>[]): void;
}
export interface IMainContext {