UNPKG

@dvcol/common-utils

Version:

Typescript library for common utility functions and constants

6 lines (4 loc) 183 B
type Observer<T> = (next: T, prev?: T) => void; type UpdateFunction<T> = (state: T) => T; type Updater<T> = T | UpdateFunction<T>; export type { Observer, UpdateFunction, Updater };