From b36855e3c866044769d448de12c4dfad974f1dfa Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Fri, 10 Nov 2023 23:29:47 +0100 Subject: [PATCH] fix(qwik-city): better type for svg?jsx imports --- scripts/api.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/api.ts b/scripts/api.ts index 584b336d9a9..0e3fc7d7006 100644 --- a/scripts/api.ts +++ b/scripts/api.ts @@ -273,6 +273,11 @@ declare module '*.mdx' { export const frontmatter: Record; export default node; } +// SVG ?jsx +declare module '*.svg?jsx' { + const Cmp: import('./core').FunctionComponent + export default Cmp; +} // Image ?jsx declare module '*?jsx' { const Cmp: import('./core').FunctionComponent> @@ -281,7 +286,6 @@ declare module '*?jsx' { export const height: number; export const srcSet: string; } - // Image &jsx declare module '*&jsx' { const Cmp: import('./core').FunctionComponent>