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

Missing type declarations for version 1.1 #3

Open
lodybo opened this issue Jan 31, 2023 · 1 comment
Open

Missing type declarations for version 1.1 #3

lodybo opened this issue Jan 31, 2023 · 1 comment

Comments

@lodybo
Copy link

lodybo commented Jan 31, 2023

When using elfproef in a TypeScript project, the typings are missing.

This leads to TS prompting the following:

error TS7016: Could not find a declaration file for module 'elfproef'. '/Users/lodyborgers/dev/projects/my-project/node_modules/elfproef/dist/elfproef.node.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/elfproef` if it exists or add a new declaration (.d.ts) file containing `declare module 'elfproef';`

2 import { validateBSN } from 'elfproef';

When inspecting the package files inside the node_modules folder with the previous version, I noticed that the typings directory is missing.

@ottob
Copy link

ottob commented Feb 7, 2024

I ran into this today also. Can you please add ts typing info?

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

2 participants