Type Alias EventOptions
EventOptions : {
guard?: boolean;
type?: "sync" | "async";
}
guard?: boolean;
type?: "sync" | "async";
}
Type declaration
Optional
guard?: booleanWhen set to true this registration is guarded. Further attempts to register an event by the same name will not be possible as long as a guarded event exists with the same name.
Optional
type?: "sync" | "async"Provides a hint on the trigger type. It may be a string 'sync' or 'async'. Any other value is not recognized and internally type will be set to undefined. If the callback is a function defined with the
async
modifier it will automatically be detected as async.
Event registration options.