跳至主要内容
版本:22.5.0

谓词类型

签名:

export type Predicate<From, To extends From = From> =
| ((value: From) => value is To)
| ((value: From) => Awaitable<boolean>);

参考: Awaitable