UNPKG

368 BTypeScriptView Raw
1/**
2 * A generic interface for change emitter payloads.
3 */
4export interface IChangedArgs<T, OldT = T, U extends string = string> {
5 /**
6 * The name of the changed attribute.
7 */
8 name: U;
9 /**
10 * The old value of the changed attribute.
11 */
12 oldValue: OldT;
13 /**
14 * The new value of the changed attribute.
15 */
16 newValue: T;
17}