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

Current NPM version has invalid TypeScript definitions #67

Open
raysarebest opened this issue Jul 19, 2022 · 0 comments
Open

Current NPM version has invalid TypeScript definitions #67

raysarebest opened this issue Jul 19, 2022 · 0 comments

Comments

@raysarebest
Copy link

raysarebest commented Jul 19, 2022

When using simple-plist from NPM (via npm install simple-plist) with TypeScript, I get the following error when trying to compile my project:

node_modules/simple-plist/dist/index.d.ts:13:19 - error TS2709: Cannot use namespace 'bplistParser' as a type.

13     bplistParser: bplistParser;
                     ~~~~~~~~~~~~


Found 1 error in node_modules/simple-plist/dist/index.d.ts:13

The current version of simple-plist on NPM at the time of this writing (and the one I'm using) is 1.3.1, and I'm using the latest TypeScript 4.7.4. It seems that when I clone this project and run npm run build, an index.d.ts is generated that's different from the one I get in node_modules, and this one doesn't appear to have this issue, though it may be missing some declarations as well

EDIT: I saw at the bottom of the discussion of #58 that there's another version on NPM with the tag next that appears to resolve this issue. I'll leave this open until it's the default latest on NPM tho

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