UNPKG

style-dictionary-utils

Version:
7 lines (6 loc) 289 B
/** * @name isGradient * @type filter * @description only returns tokens of type `gradient` */ export const isGradient = (token) => (token === null || token === void 0 ? void 0 : token.$type) === 'gradient' || (token === null || token === void 0 ? void 0 : token.type) === 'gradient';