UNPKG

style-dictionary-utils

Version:
12 lines (11 loc) 343 B
/** * @name isSource * @type filter * @description only returns tokens that are coming from a `source` file and * not from an `included` file */ export const isSourceFilter = (token) => (token === null || token === void 0 ? void 0 : token.isSource) === true; export const isSource = { name: 'isSource', filter: isSourceFilter, };