UNPKG

style-dictionary-utils

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