@jupyterlab/coreutils
Version:
JupyterLab - Core Utilities
18 lines (17 loc) • 368 B
TypeScript
/**
* A generic interface for change emitter payloads.
*/
export interface IChangedArgs<T, OldT = T, U extends string = string> {
/**
* The name of the changed attribute.
*/
name: U;
/**
* The old value of the changed attribute.
*/
oldValue: OldT;
/**
* The new value of the changed attribute.
*/
newValue: T;
}