mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix typescript 1.6 compile errors.
- Remove unknown properties in object literals. - Don't use module-level `delete` statements.
This commit is contained in:
committed by
Vladimir Enchev
parent
ccbd00dac8
commit
13deafec79
@@ -127,7 +127,7 @@ export class Observable implements definition.Observable {
|
||||
this[data.propertyName] = data.value;
|
||||
}
|
||||
|
||||
public notify(data: definition.EventData) {
|
||||
public notify<T extends definition.EventData>(data: T) {
|
||||
var observers = this._getEventList(data.eventName);
|
||||
if (!observers) {
|
||||
return;
|
||||
@@ -206,4 +206,4 @@ export class Observable implements definition.Observable {
|
||||
public toString(): string {
|
||||
return this.typeName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user