diff --git a/packages/pigment-css-react/src/processors/sx.ts b/packages/pigment-css-react/src/processors/sx.ts index 6e949373..656dac79 100644 --- a/packages/pigment-css-react/src/processors/sx.ts +++ b/packages/pigment-css-react/src/processors/sx.ts @@ -143,13 +143,10 @@ export class SxProcessor extends BaseProcessor { * to * to */ - this.replacer( - // @ts-ignore - (tagPath: NodePath) => { - return t.callExpression(tagPath.get('callee').node, [result]); - }, - false, - ); + this.replacer((_tagPath) => { + const tagPath = _tagPath as NodePath; + return t.callExpression(tagPath.get('callee').node, [result]); + }, false); /** * For JSX calls, replace the sx prop with runtime sx