UNPKG

@terrazzo/parser

Version:

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

17 lines 885 B
import type { ResolverApplicationOptions } from '../types.js'; /** * If tokens are found inside a resolver, strip out the resolver paths (don’t * include "sets"/"modifiers" in the token ID etc.) */ export declare function filterResolverPaths(path: string[]): string[]; /** Make a deterministic string from an object */ export declare function getPermutationID(input: Record<string, string | undefined>, options?: ResolverApplicationOptions | undefined): string; /** * Destructively merge B into A, with B overwriting A * * This is needed for resolvers because we need a really performant way to merge * token sets. merge-anything is a package we use for merging more complex * configurations like terrazzo.config.ts files, but that’s too slow for tokens. */ export declare function destructiveMerge(a: object, b: object): void; //# sourceMappingURL=resolver-utils.d.ts.map