跳到主要内容
版本:23.11.1

谓词类型

签名

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

参考: Awaitable