Updater

类型别名:Updater<T>

ts
type Updater<T> = (prev) => T | T;
type Updater<T> = (prev) => T | T;

定义于:types.ts:9

类型安全的更新器,可以是函数或直接值

类型参数

T