@jewel998/state-machine - v0.0.5 / BasicConfigurationValidator
Class: BasicConfigurationValidator<TContext, TState, TEvent>
Strategy pattern for different validation and execution strategies
Type parameters
| Name | Type |
|---|---|
TContext | extends ContextConstraint |
TState | extends StateIdentifier |
TEvent | extends EventIdentifier |
Implements
IValidationStrategy<StateMachineConfig<TContext,TState,TEvent>>
Table of contents
Constructors
Methods
Constructors
constructor
• new BasicConfigurationValidator<TContext, TState, TEvent>(): BasicConfigurationValidator<TContext, TState, TEvent>
Type parameters
| Name | Type |
|---|---|
TContext | extends ContextConstraint |
TState | extends StateIdentifier |
TEvent | extends EventIdentifier |
Returns
BasicConfigurationValidator<TContext, TState, TEvent>
Methods
validate
▸ validate(config): ValidationResult
Parameters
| Name | Type |
|---|---|
config | StateMachineConfig<TContext, TState, TEvent> |