UNPKG

@lwc/engine-server

Version:

Renders LWC components in a server environment.

15 lines (14 loc) 590 B
/** * Splits the given space-delimited string into unique values. * @param value The string to split * @returns Set of unique values * @example classNametoTokenList('foo bar foo') // Set(2) { 'foo', 'bar' } */ export declare function classNameToTokenList(value: string): Set<string>; /** * Converts a set of values into a space-delimited string * @param values The set of values to join * @returns A space-delimited string * @example tokenListToClassName(new Set(['hello', 'world'])) // 'hello world' */ export declare function tokenListToClassName(values: Set<string>): string;