UNPKG

@obsidize/rx-map

Version:

ES6 Map with rxjs extensions for change detection

16 lines (15 loc) 536 B
export declare enum ChangeDetectionResultType { CREATE = "CREATE", UPDATE = "UPDATE", DELETE = "DELETE", NO_CHANGE = "NO_CHANGE" } export interface ChangeDetectionResult<T> { readonly type: ChangeDetectionResultType; readonly changes?: Partial<T>; } /** * Returns true if the given value is a valid detection type, except for the NO_CHANGE type. * (i.e. any type that indicates state mutation has occurred) */ export declare function isActionableChangeDetectionResultType(value: any): boolean;