SolidJSS
SolidJSโ€ข3y agoโ€ข
2 replies
Kova

Importing use:form declaration for Felte

I created a .d.ts file that looks like this:
declare module "solid-js" {
    namespace JSX {
        interface Directives {
            form: (node: HTMLFormElement) => { destroy: () => void };
        }
    }
}


But my form is still giving me an error:

Any idea what I'm doing wrong?
image.png
Was this page helpful?