Skip to content
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

Export type definitions (d.ts) #7

Open
segevfiner opened this issue Aug 5, 2024 · 0 comments
Open

Export type definitions (d.ts) #7

segevfiner opened this issue Aug 5, 2024 · 0 comments

Comments

@segevfiner
Copy link

segevfiner commented Aug 5, 2024

The code is already in TypeScript, so it would be nice to also generate and export the type definitions from the package (A d.ts file pointed by the types field in package.json). Should probably also include definitions for declare module '*.hns' and so on. e.g.

declare module '*.hbs' {
  import type handlebars from 'handlebars';
  const template: handlebars.TemplateDelegate;
  export default template;
}

And it would probably help if the types exported for the plugin are actually complete, and not just any for everything.

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

No branches or pull requests

1 participant