UNPKG

@datx/utils

Version:

DatX lib utils for mixins

29 lines (28 loc) 687 B
export interface IObservable { } export interface IObservableArray<T = any> extends Array<T> { replace(data: Array<T>): Array<T>; remove(data: T): Array<T>; } interface IArrayBaseChange<T> { object: IObservableArray<T>; observableKind: 'array'; debugObjectName: string; index: number; } export interface IArraySplice<T = any> extends IArrayBaseChange<T> { type: 'splice'; added: Array<T>; addedCount: number; removed: Array<T>; removedCount: number; } export interface IArrayChange<T = any> extends IArrayBaseChange<T> { type: 'change'; newValue: T; index: number; } export interface IReactionDisposer { (): void; } export {};