UNPKG

style-dictionary-utils

Version:
11 lines (10 loc) 303 B
/** * @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, };