added archiver typing
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import * as archiver from "archiver";
|
||||
|
||||
export class Packer {
|
||||
|
||||
}
|
@ -16,6 +16,12 @@
|
||||
},
|
||||
"assertion-error/assertion-error.d.ts": {
|
||||
"commit": "80057d687aefa736511e434cd2a6c0e9a6bb02bc"
|
||||
},
|
||||
"archiver/archiver.d.ts": {
|
||||
"commit": "e937b3e64af586d19f2ea29fdf771e9dc4feecc8"
|
||||
},
|
||||
"node/node.d.ts": {
|
||||
"commit": "e937b3e64af586d19f2ea29fdf771e9dc4feecc8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
42
ts/typings/archiver/archiver.d.ts
vendored
Normal file
42
ts/typings/archiver/archiver.d.ts
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
// Type definitions for archiver v0.15.0
|
||||
// Project: https://github.com/archiverjs/node-archiver
|
||||
// Definitions by: Esri <https://github.com/archiverjs/node-archiver>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/* =================== USAGE ===================
|
||||
|
||||
import Archiver = require('archiver);
|
||||
var archiver = Archiver.create('zip');
|
||||
archiver.pipe(FS.createWriteStream('xxx'));
|
||||
archiver.append(FS.createReadStream('xxx'));
|
||||
archiver.finalize();
|
||||
|
||||
=============================================== */
|
||||
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
declare module "archiver" {
|
||||
import * as FS from 'fs';
|
||||
import * as STREAM from 'stream';
|
||||
|
||||
interface nameInterface {
|
||||
name?: string;
|
||||
}
|
||||
|
||||
interface Archiver extends STREAM.Transform {
|
||||
pipe(writeStream: FS.WriteStream): void;
|
||||
append(readStream: FS.ReadStream, name: nameInterface): void;
|
||||
finalize(): void;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
|
||||
}
|
||||
|
||||
function archiver(format: string, options?: Options): Archiver;
|
||||
|
||||
namespace archiver {
|
||||
function create(format: string, options?: Options): Archiver;
|
||||
}
|
||||
|
||||
export = archiver;
|
||||
}
|
2329
ts/typings/node/node.d.ts
vendored
Normal file
2329
ts/typings/node/node.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
ts/typings/tsd.d.ts
vendored
2
ts/typings/tsd.d.ts
vendored
@ -3,3 +3,5 @@
|
||||
/// <reference path="lodash/lodash.d.ts" />
|
||||
/// <reference path="assertion-error/assertion-error.d.ts" />
|
||||
/// <reference path="chai/chai.d.ts" />
|
||||
/// <reference path="archiver/archiver.d.ts" />
|
||||
/// <reference path="node/node.d.ts" />
|
||||
|
Reference in New Issue
Block a user