fix ts 2.4.1 compile errors in workbench/api

This commit is contained in:
Johannes Rieken
2017-06-15 10:40:45 +02:00
parent ac08540b94
commit 6fdfe2f055
6 changed files with 15 additions and 14 deletions

View File

@@ -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;
}
};
}