There are two issues with the TypeScript types that prevent tsc from typechecking a project that uses HTMX:
- The syntax at the following line is invalid (the
? should come before the ::
- The type referenced on the following line (
HtmxTriggerSpecification) does not exist:
|
triggerSpecsCache?: {[trigger: string]: HtmxTriggerSpecification[]}; |
The first is trivial to fix, but I'm not sure what the type for HtmxTriggerSpecification is supposed to be. If someone can point me in the right direction, I can open a PR.
It'd be great to have CI check these types to prevent future regressions!
There are two issues with the TypeScript types that prevent
tscfrom typechecking a project that uses HTMX:?should come before the::htmx/src/htmx.d.ts
Line 432 in 145627a
HtmxTriggerSpecification) does not exist:htmx/src/htmx.d.ts
Line 438 in 145627a
The first is trivial to fix, but I'm not sure what the type for
HtmxTriggerSpecificationis supposed to be. If someone can point me in the right direction, I can open a PR.It'd be great to have CI check these types to prevent future regressions!