Skip to content

ASTValidator

ASTValidator defines a singleton validator for a type-checked AST.

optional config(): Record<string, unknown>

config returns serializable validator settings when the validator has configuration.

Record<string, unknown>


name(): string

Name returns the validator’s unique name.

string


validate(environment, config, ast, issues): void

Validate inspects a checked AST and reports any issues it finds.

Env

ValidatorConfig

AST

Errors

void