mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
added 7zip-min (#38693)
This commit is contained in:
parent
b11417df1c
commit
cda261b922
5
types/7zip-min/7zip-min-tests.ts
Normal file
5
types/7zip-min/7zip-min-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import _7z = require('7zip-min');
|
||||
|
||||
_7z.pack("index.d.ts", "archive.7z", (err: any) => { });
|
||||
_7z.unpack("archive.7z", "./", (err: any) => { });
|
||||
_7z.list("archive.7z", (err: any, result: _7z.Result[]) => { });
|
||||
18
types/7zip-min/index.d.ts
vendored
Normal file
18
types/7zip-min/index.d.ts
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
// Type definitions for 7zip-min 1.1
|
||||
// Project: https://github.com/onikienko/7zip-min
|
||||
// Definitions by: Tanandara <https://github.com/Tanandara>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.6
|
||||
|
||||
export function unpack(pathToArchive: string, whereToUnpack: string, errorCallback: (err: any) => void): void;
|
||||
export function pack(pathToDirOrFile: string, pathToArchive: string, errorCallback: (err: any) => void): void;
|
||||
export function list(pathToArchive: string, callback: (err: any, result: Result[]) => void): void;
|
||||
export function cmd(command: string[], errorCallback: (err: any) => void): void;
|
||||
export interface Result {
|
||||
name: string;
|
||||
date: string;
|
||||
time: string;
|
||||
attr: string;
|
||||
size: string;
|
||||
compressed: string;
|
||||
}
|
||||
23
types/7zip-min/tsconfig.json
Normal file
23
types/7zip-min/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"7zip-min-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/7zip-min/tslint.json
Normal file
3
types/7zip-min/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user