style-dictionary-utils
Version:
Utilities to use in your style dictionary config
10 lines (9 loc) • 384 B
TypeScript
import { TransformedToken } from 'style-dictionary/types';
/**
* @name getHasAttribute
* @type filter
* @description only returns tokens of that have any of the specified attributes
* @param attributes one more multiple attributes (`strings`)
* @returns filter function
*/
export declare const getHasAttribute: (...attributes: string[]) => (token: TransformedToken) => boolean;