From 00348a99074730f2c597af11ace0e4bf794031f6 Mon Sep 17 00:00:00 2001 From: kreuzerk Date: Tue, 14 Nov 2023 20:47:23 +0100 Subject: [PATCH] fix(tsx): use the correct type for tsx props #226 --- src/lib/generators/code-snippet-generators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/generators/code-snippet-generators.ts b/src/lib/generators/code-snippet-generators.ts index fcd9560..9e060ac 100644 --- a/src/lib/generators/code-snippet-generators.ts +++ b/src/lib/generators/code-snippet-generators.ts @@ -113,7 +113,7 @@ export const generateSvgConstant = (variableName: string, filenameWithoutEnding: export function generateTSXConstant(variableName: string, svg: string) { const variableNameCapitalized = variableName.charAt(0).toUpperCase() + variableName.slice(1); const svgStringWithProps = svg.replace('>', ' {...props}>'); - return `export const ${variableNameCapitalized} = (props) => (${svgStringWithProps});`; + return `export const ${variableNameCapitalized} = (props: {[key: string]: any}) => (${svgStringWithProps});`; } export const generateExportStatement = (fileName: string, generatedIconsFolderName?: string): string => {