mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
309 B
TypeScript
21 lines
309 B
TypeScript
import * as extract from 'extract-zip';
|
|
|
|
const str = 'str';
|
|
const num = 0;
|
|
|
|
let options: extract.Options = {
|
|
dir: str,
|
|
};
|
|
options = {
|
|
dir: str,
|
|
defaultFileMode: num,
|
|
};
|
|
|
|
extract(str, options, (err) => {
|
|
if (err) {
|
|
console.error(err);
|
|
return;
|
|
}
|
|
console.log('done');
|
|
});
|