Skip to main content
Version: 22.9.0

Predicate 类型

¥Predicate type

签名:

¥Signature:

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

参考:等待的

¥References: Awaitable