UNPKG

style-dictionary-utils

Version:
11 lines (10 loc) 289 B
/** * @name isShadow * @type filter * @description only returns tokens of type `shadow` */ export const isShadowFilter = (token) => (token === null || token === void 0 ? void 0 : token.$type) === 'shadow'; export const isShadow = { name: 'isShadow', filter: isShadowFilter, };