Type Alias Exact<D, G, E>
Exact<D, G, E>: { console?: ConsoleInterface; effects?: { readonly [N in E]: IsStringLiteral<N> extends false ? "Error: Effect name must be a literal string." : N extends ReservedKeyword ? `Error: Effect name '${N}' is reserved.` : Config.Effect<D, N> }; guards?: { readonly [N in G]: IsStringLiteral<N> extends false ? "Error: Guard name must be a literal string." : N extends ReservedKeyword ? `Error: Guard name '${N}' is reserved.` : Config.Guard<D, N> }; verbose?: Verbose; } Type Parameters
- D
- G extends string
- E extends string
Type declaration
Optional
Readonly
effects?: {
readonly [N in E]: IsStringLiteral<N> extends false
? "Error: Effect name must be a literal string."
: N extends ReservedKeyword
? `Error: Effect name '${N}' is reserved.`
: Config.Effect<D, N>
}
Optional
Readonly
guards?: {
readonly [N in G]: IsStringLiteral<N> extends false
? "Error: Guard name must be a literal string."
: N extends ReservedKeyword
? `Error: Guard name '${N}' is reserved.`
: Config.Guard<D, N>
}
Optional
Readonly
verbose?: Verbose
The type of state machine configuration.