Skip to content

"entries" option not working in TypeScript #7

@erbhargavvyas

Description

@erbhargavvyas

As per the documentation, there is an option tar.entries to specify an array of fils.
The options works in when used JavaScript.
But if I use TypeScript for coding with @types/targz installed for its type definition then I can not use the 'entries' option.
It gives me an error as shown below.

Type '{ entries: string[]; }' is not assignable to type 'ExtractOptions'.
Object literal may only specify known properties, and 'entries' does not exist in type 'ExtractOptions'.ts(2322)

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