Skip to content

Commit

Permalink
fix(qwik-city): better type for svg?jsx imports (#5420)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens authored Nov 10, 2023
1 parent 665b800 commit 55351ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ declare module '*.mdx' {
export const frontmatter: Record<string, any>;
export default node;
}
// SVG ?jsx
declare module '*.svg?jsx' {
const Cmp: import('./core').FunctionComponent<import('./core').QwikIntrinsicElements['svg']>
export default Cmp;
}
// Image ?jsx
declare module '*?jsx' {
const Cmp: import('./core').FunctionComponent<Omit<import('./core').QwikIntrinsicElements['img'], 'src' | 'width' | 'height' | 'srcSet'>>
Expand All @@ -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<Omit<import('./core').QwikIntrinsicElements['img'], 'src' | 'width' | 'height' | 'srcSet'>>
Expand Down

0 comments on commit 55351ff

Please sign in to comment.