Skip to content

Broken TypeScript types in 1.9.10 #2148

@nwalters512

Description

@nwalters512

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 ::
    ignoreTitle:? boolean;
  • 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions