S
SolidJS2y ago
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 };
}
}
}
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?
1 Reply
Kova
KovaOP2y ago
import "solid-js";
declare module "solid-js" {
namespace JSX {
interface Directives {
form: true;
}
}
}
import "solid-js";
declare module "solid-js" {
namespace JSX {
interface Directives {
form: true;
}
}
}
That's what I was doing wrong!
Want results from more Discord servers?
Add your server