Skip to content

Commit

Permalink
fix: preact type compatibility (#56)
Browse files Browse the repository at this point in the history
closes #55
  • Loading branch information
XantreDev authored Oct 13, 2022
1 parent b4d523a commit f1ddace
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// https://github.com/facebook/create-react-app/blob/0ee4765c39f820e5f4820abf4bf2e47b3324da7f/packages/react-scripts/lib/react-app.d.ts#L47-L56
// https://github.com/pd4d10/vite-plugin-svgr/pull/56 for preact compatiblility

declare module '*.svg' {
import * as React from 'react'

export const ReactComponent: React.FunctionComponent<
React.SVGProps<SVGSVGElement> & { title?: string }
React.ComponentProps<'svg'> & { title?: string }
>
}

0 comments on commit f1ddace

Please sign in to comment.