mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix TypeScript 2.4 errors, introduced mainly due weak types and covariant checking for callbacks (#4476)
This commit is contained in:
committed by
Alexander Vakrilov
parent
9e6498c29a
commit
8adb2fdfef
@@ -45,7 +45,7 @@ export interface CssAnimationPropertyOptions<T, U> {
|
||||
readonly valueConverter?: (value: string) => U;
|
||||
}
|
||||
|
||||
export class Property<T extends ViewBase, U> implements TypedPropertyDescriptor<U> {
|
||||
export class Property<T extends ViewBase, U> {
|
||||
constructor(options: PropertyOptions<T, U>);
|
||||
|
||||
public readonly getDefault: symbol;
|
||||
@@ -55,12 +55,16 @@ export class Property<T extends ViewBase, U> implements TypedPropertyDescriptor<
|
||||
public nativeValueChange(T, U): void;
|
||||
public isSet(instance: T): boolean;
|
||||
}
|
||||
export interface Property<T extends ViewBase, U> extends TypedPropertyDescriptor<U> {
|
||||
}
|
||||
|
||||
export class CoercibleProperty<T extends ViewBase, U> extends Property<T, U> implements TypedPropertyDescriptor<U> {
|
||||
export class CoercibleProperty<T extends ViewBase, U> extends Property<T, U> {
|
||||
constructor(options: CoerciblePropertyOptions<T, U>);
|
||||
|
||||
public readonly coerce: (target: T) => void;
|
||||
}
|
||||
export interface CoercibleProperty<T extends ViewBase, U> extends TypedPropertyDescriptor<U> {
|
||||
}
|
||||
|
||||
export class InheritedProperty<T extends ViewBase, U> extends Property<T, U> {
|
||||
constructor(options: PropertyOptions<T, U>);
|
||||
|
||||
Reference in New Issue
Block a user