problem with "use:" and custom directives in tsx
I copied the custom directive from the docs
and then I used here like this
But it marks as a error when I use it like that in the tsx file. It works correctly as expected tho. Is there any way to get rid of the wavy red line ?
The error says:
and then I used here like this
But it marks as a error when I use it like that in the tsx file. It works correctly as expected tho. Is there any way to get rid of the wavy red line ?
The error says:
Type '{ children: Element[]; class: string; onClick: () => void; "use:clickOutside": () => false; }' is not assignable to type 'HTMLAttributes<HTMLDivElement>'.
Property 'use:clickOutside' does not exist on type 'HTMLAttributes<HTMLDivElement>'.
