targz icon indicating copy to clipboard operation
targz copied to clipboard

"entries" option not working in TypeScript

Open erbhargavvyas opened this issue 3 years ago • 0 comments

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)

erbhargavvyas avatar Apr 19 '21 11:04 erbhargavvyas