-
Notifications
You must be signed in to change notification settings - Fork 2
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
"handlebars.create is not a function" (wrong TypeScript type declarations?) #46
Comments
@francescosalvi - we are already doing the
Here is also a reference from a package I maintain called |
I was not asking advice about the intended use of the library, which I do understand; I was pointing out that as it stands, its type declarations seem incorrect. Take another example:
But this (using ESM) will not compile:
|
Ah! Can you try it with the new branch and pull request? #47 |
@jaredwray I updated the package.json as such:
but now any import fails with:
(To be 100% sure I even cloned the repo, switched to main, pulled, installed deps, and I get the same report in VSCode as soon as I open |
Would this branch work better? https://github.com/jaredwray/fumanchu/tree/types-definition-update |
@jaredwray
|
Thanks. Went for a more simple type definition. Let me know if that is working better. |
its merged into main. FYI |
Repro
Given the example file
src/index.ts
running
tsc
produces no errors, whilenode dist/index.js
gives:It seems to me the package is declaring its
types
as "the same ashandlebar
's", but that contradicts the actual implementation of the package index module.tsconfig.json
package.json
The text was updated successfully, but these errors were encountered: