Skip to main content

@jewel998/state-machine - v0.0.5 / BasicConfigurationValidator

Class: BasicConfigurationValidator<TContext, TState, TEvent>

Strategy pattern for different validation and execution strategies

Type parameters

NameType
TContextextends ContextConstraint
TStateextends StateIdentifier
TEventextends EventIdentifier

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new BasicConfigurationValidator<TContext, TState, TEvent>(): BasicConfigurationValidator<TContext, TState, TEvent>

Type parameters

NameType
TContextextends ContextConstraint
TStateextends StateIdentifier
TEventextends EventIdentifier

Returns

BasicConfigurationValidator<TContext, TState, TEvent>

Methods

validate

validate(config): ValidationResult

Parameters

NameType
configStateMachineConfig<TContext, TState, TEvent>

Returns

ValidationResult

Implementation of

IValidationStrategy.validate

Defined in

src/validation/BasicValidator.ts:23