UNPKG

style-dictionary-utils

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