mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
chore: remove critical circular dependencies (#8114)
* chore: remove critical circular dependencies * chore: fix tslint errors * chore: remove platform specific types from interfaces * chore: update unit tests polyfills * fix: incorrect null check * chore: update api.md file * test: improve test case * chore: apply comments * test: avoid page style leaks in tests
This commit is contained in:

committed by
Alexander Vakrilov

parent
5b647bd809
commit
0ffc790d82
13
nativescript-core/data/observable/observable-interfaces.ts
Normal file
13
nativescript-core/data/observable/observable-interfaces.ts
Normal file
@ -0,0 +1,13 @@
|
||||
// Types
|
||||
import { Observable } from ".";
|
||||
|
||||
export interface EventData {
|
||||
eventName: string;
|
||||
object: Observable;
|
||||
}
|
||||
|
||||
export interface PropertyChangeData extends EventData {
|
||||
propertyName: string;
|
||||
value: any;
|
||||
oldValue?: any;
|
||||
}
|
@ -1,10 +1,7 @@
|
||||
import { Observable as ObservableDefinition, WrappedValue as WrappedValueDefinition, PropertyChangeData } from ".";
|
||||
import { Observable as ObservableDefinition, WrappedValue as WrappedValueDefinition } from ".";
|
||||
import { EventData, PropertyChangeData } from "./observable-interfaces";
|
||||
|
||||
// TODO: Remove this. It is the same export as in d.ts to fix failing build when modules are linked
|
||||
export interface EventData {
|
||||
eventName: string;
|
||||
object: ObservableDefinition;
|
||||
}
|
||||
export * from "./observable-interfaces";
|
||||
|
||||
interface ListenerEntry {
|
||||
callback: (data: EventData) => void;
|
||||
|
Reference in New Issue
Block a user