Skip to content

@yantrix/automata v0.6.0 • Docs


Yantrix API / @yantrix/automata / notModelPredicate

Function: notModelPredicate() ​

ts
function notModelPredicate<ModelType, EventType, EventMetaType>(predicate): TModelPredicate<ModelType, EventType, EventMetaType>

Negates one Model Predicate.

Type Parameters ​

• ModelType extends object

• EventType extends number = number

• EventMetaType extends { [K in number]: any } = Record<EventType, unknown>

Parameters ​

• predicate: TModelPredicate<ModelType, EventType, EventMetaType>

Returns ​

TModelPredicate<ModelType, EventType, EventMetaType>