targz
targz copied to clipboard
"entries" option not working in TypeScript
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)