Skip to main content
Version: 24.38.0

Predicate 类型

🌐 Predicate type

语法

🌐 Signature

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

参考资料: 可等待