Skip to content
GitHubXDiscord

Types

Every public type in @triggery/core is exported from its top-level entrypoint. The most-asked-about ones get their own reference page; the rest are documented inline in packages/core/src/types.ts.

These are stable but documented inline in source rather than on their own pages. Open the link to jump straight to the type definition.

TypeWhere
Runtimetypes.ts — the runtime instance returned by createRuntime
Trigger<S>types.ts — the value returned by createTrigger
TriggerHandler<S, R>types.ts — function signature of config.handler
ConcurrencyStrategytypes.ts'take-latest' | 'take-every' | 'take-first' | 'queue' | 'exhaust' | 'sync'
SchedulerStrategytypes.ts'microtask' | 'sync'
CheckCtx<C>types.ts — typed check.is / check.all / check.any
MetaCtxtypes.tstriggerId, runId, cascadeId, scheduledAt
TriggerInspectSnapshottypes.ts — one ring-buffer record
FireContext / MatchContext / SkipContext / ActionContext / CascadeContexttypes.ts — middleware hook payloads
RegistrationTokentypes.ts — returned by every runtime.register*
EmptyRecordtypes.tsRecord<string, never> for schemas with no actions/conditions
EventMap<S> / ConditionMap<S> / ActionMap<S>types.ts — schema sub-maps
EventKey<S> / ConditionKey<S> / ActionKey<S>types.ts — the union of names in each sub-map
NamedHooks<S>types.ts — output of createNamedHooks

If you want a type documented on its own page, open an issue — they’re cheap to add.