@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
9 lines (8 loc) • 497 B
TypeScript
import type { SimpleCallExpression, StringableASTNode } from 'eslint-codemod-utils';
/**
* Returns a stringifiable node with the token expression corresponding to its matching token.
* If no token found for the pair the function returns undefined.
* @param propertyName string camelCased css property.
* @param value The computed value e.g '8px' -> '8'.
*/
export declare function getTokenReplacement(propertyName: string, value: string): StringableASTNode<SimpleCallExpression> | undefined;