style-dictionary-utils
Version:
Utilities to use in your style dictionary config
11 lines (10 loc) • 496 B
TypeScript
import { TransformedToken } from 'style-dictionary/types';
/**
* @name getHasAttributeValue
* @type filter
* @description only returns tokens of that have any of the specified attributes
* @param attributes string or array of strings
* @param values one more multiple values
* @returns filter function
*/
export declare const getHasAttributeValue: (attributes: string | string[], values: string | number | object | Array<string | number | object>) => (token: TransformedToken) => boolean;