You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a backend server with TSX, when using "_" attribute in any component of my app I always get an error message similar to this:
Property '_' does not exist on type 'HtmlFormTag'
For example this code:
exportfunctionHSversion({ path }: TProps){return(<Layout><><formhx-encoding='multipart/form-data'hx-post={path}_='on htmx:xhr:progress(loaded, total) set #progress.value to (loaded/total)*100'style="margin-top: 1em;"><inputtype='file'name='file'accept={fileExts}/><p/><button>Upload</button><progressid='progress'value='0'max='100'></progress></form></></Layout>)}
This is its error:
Type '{ children: Element[]; "hx-encoding": string; "hx-post": string; _: string; style: string; }' is not assignable to type 'HtmlFormTag'.
Property '_' does not exist on type 'HtmlFormTag'.ts(2322)
I created global.d.ts file in app root, and tried with this content:
I have a backend server with TSX, when using "_" attribute in any component of my app I always get an error message similar to this:
For example this code:
This is its error:
I created
global.d.ts
file in app root, and tried with this content:or this content
it seems not to work, how to fix it?
The text was updated successfully, but these errors were encountered: