UNPKG

@terrazzo/parser

Version:

Parser/validator for the Design Tokens Community Group (DTCG) standard.

9 lines 640 B
import type * as momoa from '@humanwhocodes/momoa'; import type Logger from '../logger.js'; import type { LogEntry } from '../logger.js'; type FatalLogEntry = Omit<LogEntry, 'continueOnError'>; export declare function assert(value: unknown, logger: Logger, entry: FatalLogEntry): asserts value; export declare function assertStringNode(value: momoa.AnyNode | undefined, logger: Logger, entry: FatalLogEntry): asserts value is momoa.StringNode; export declare function assertObjectNode(value: momoa.AnyNode | undefined, logger: Logger, entry: FatalLogEntry): asserts value is momoa.ObjectNode; export {}; //# sourceMappingURL=assert.d.ts.map