Skip to main content
Version: 23.8.0

Predicate 类型

¥Predicate type

签名

¥Signature

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

参考:等待的

¥References: Awaitable