Skip to content

Current NPM version has invalid TypeScript definitions #67

@raysarebest

Description

@raysarebest

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions