style-dictionary-utils
Version:
Utilities to use in your style dictionary config
9 lines (8 loc) • 527 B
TypeScript
import { Transform } from 'style-dictionary/types';
/**
* @description converts the [TransformedToken's](https://github.com/amzn/style-dictionary/blob/main/types/TransformedToken.d.ts) `.path` array to a PascalCase string, preserves casing of parts
* @type name transformer — [StyleDictionary.NameTransform](https://github.com/amzn/style-dictionary/blob/main/types/Transform.d.ts)
* @matcher omitted to match all tokens
* @transformer returns `string` PascalCase
*/
export declare const namePathToPascalCase: Transform;