style-dictionary-utils
Version:
Utilities to use in your style dictionary config
11 lines (10 loc) • 303 B
JavaScript
/**
* @name isDuration
* @type filter
* @description only returns tokens of type `duration`
*/
export const isDurationFilter = (token) => (token === null || token === void 0 ? void 0 : token.$type) === 'duration';
export const isDuration = {
name: 'isDuration',
filter: isDurationFilter,
};