-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsx-runtime types missing? #239
Comments
Indeed, there is no type file to write this file. If you can't wait, you can do a pr? |
Not sure how to add it to the package without refactoring exports. I added that into my project and it fixed a few things: /* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/ban-types */
declare module 'fre/jsx-runtime' {
import { Attributes, FC, IFiber } from 'fre'
type _JSX = <P extends Attributes = {}>(
type: FC<P>,
attrs: P
) => Partial<IFiber>
export const jsx: _JSX
export const jsxs: _JSX
export function Fragment(props: any): any
} |
Can you pull a PR and put a d.ts file with the same name in the root directory? |
When using
"jsxImportSource": "fre"
in my typescript project I'm getting:The text was updated successfully, but these errors were encountered: