UNPKG

style-dictionary-utils

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