UNPKG

@codama/validators

Version:

Validator visitors for the Codama framework

13 lines 589 B
import { Node } from '@codama/nodes'; import { NodePath, NodeStack } from '@codama/visitors-core'; export declare const LOG_LEVELS: readonly ["debug", "trace", "info", "warn", "error"]; export type LogLevel = (typeof LOG_LEVELS)[number]; export type ValidationItem = { level: LogLevel; message: string; node: Node; path: NodePath; }; export declare function validationItem(level: LogLevel, message: string, node: Node, path: NodePath | NodeStack): ValidationItem; export declare const getLevelIndex: (level: LogLevel) => number; //# sourceMappingURL=ValidationItem.d.ts.map