-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add TypeScript support #52
Comments
Can you elaborate on what this means? Are you just looking for TypeScript types? If so, a PR would be welcome... |
Ok, I’m new to TypeScript but I’m curious. Thanks for sharing your starter definition, I’ll see if I can find time to get around to adding it next week. |
I've added the TypeScript definitions and released in @tkrotoff Can you please try out the definitions in the new version and let me know if it works for you so I can close this issue? Thanks! |
File types.d.ts is not part of the package: https://unpkg.com/browse/html-webpack-tags-plugin@2.0.16/ I guess you have to add types.d.ts to ...
"files": [
"index.js",
"types.d.ts"
],
... |
Oh crap! yeah I only tested locally with I'll publish another version with the file added. Sorry about that, and thanks for reporting it! |
Published in |
It works fine, thx! |
Current type definition I use in my projects (something like
types/html-webpack-tags-plugin.d.ts
):Then you have autocompletion using vscode or whatever smart editor/IDE:
3 solutions (see https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html):
The text was updated successfully, but these errors were encountered: