mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
fix ts 2.4.1 compile errors in workbench/api
This commit is contained in:
@@ -84,9 +84,9 @@ export class InstanceCollection {
|
||||
public define<T>(id: ProxyIdentifier<T>): InstanceSetter<T> {
|
||||
let that = this;
|
||||
return new class {
|
||||
set(value: T) {
|
||||
set<R extends T>(value: T): R {
|
||||
that._set(id, value);
|
||||
return value;
|
||||
return <R>value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user