Skip to main content
Version: Next

ModalKitPredicate

ModalKitPredicate

The predicate function that filters modal interactions. It receives a ModalSubmitInteraction and returns a boolean or a Promise that resolves to a boolean.

Signature
type ModalKitPredicate = (
interaction: ModalSubmitInteraction,
) => Awaitable<boolean>