UNPKG

@terrazzo/parser

Version:

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

15 lines 843 B
import { type InputSource, type InputSourceWithDocument } from '@terrazzo/json-schema-tools'; import type { TokenNormalizedSet } from '@terrazzo/token-tools'; import type Logger from '../logger.js'; import type { ParseOptions } from '../types.js'; export interface LoadOptions extends Pick<ParseOptions, 'config' | 'continueOnError' | 'yamlToMomoa' | 'resolveAliases' | 'transform'> { req: NonNullable<ParseOptions['req']>; logger: Logger; } export interface LoadSourcesResult { tokens: TokenNormalizedSet; sources: InputSourceWithDocument[]; } /** Load from multiple entries, while resolving remote files */ export declare function loadSources(inputs: InputSource[], { config, logger, req, continueOnError, yamlToMomoa, resolveAliases, transform, }: LoadOptions): Promise<LoadSourcesResult>; //# sourceMappingURL=load.d.ts.map