18 lines
233 B
Plaintext
18 lines
233 B
Plaintext
/**
|
|
* @private
|
|
*/
|
|
export type AnyUpdater = (prev: any) => any
|
|
|
|
/**
|
|
* @private
|
|
*/
|
|
export interface ListenerValue<T> {
|
|
prevVal: T
|
|
currentVal: T
|
|
}
|
|
|
|
/**
|
|
* @private
|
|
*/
|
|
export type Listener<T> = (value: ListenerValue<T>) => void
|