Skip to content

Rewrote in Typescript and added support for HTMX Extensions #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

computergnome99
Copy link

I was trying to use this extension the other day, but was surprised that there was no support for type definitions, which was causing IDE errors. I've re-written the project in Typescript and added a build-step which generates .js, .mjs. and .d.ts files, as well as added an .npmignore file which means that published files should only include the compiled files as well as the package.json and readme files.

The second feature I thought would be cool was adding support for HTMX Extensions. With this update, extensions can be added and globally registered by the integration. I've tested it with the Response Targets Extension, but the process should match for all extensions. I added JSDoc comments explaining how to implement these changes, but updates to the readme/example might be in order as well.

I didn't have much time to put into this, but if you need changes made before merging, I'll be happy to make those in the coming weeks as I find time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant