isUpdaterFunction

函数:isUpdaterFunction()

ts
function isUpdaterFunction<T>(updater): updater is (prev: T) => T
function isUpdaterFunction<T>(updater): updater is (prev: T) => T

定义于:types.ts:27

类型守卫,用于检查 updater 是否为函数

类型参数

T

参数

updater

Updater<T>

返回

updater is (prev: T) => T