mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
Options and SizeStream should be inside the namespace
This commit is contained in:
Vendored
+12
-12
@@ -6,20 +6,20 @@
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module 'gulp-size' {
|
||||
interface IOptions {
|
||||
showFiles?: boolean;
|
||||
gzip?: boolean;
|
||||
title?: string;
|
||||
namespace size {
|
||||
interface Options {
|
||||
showFiles?: boolean;
|
||||
gzip?: boolean;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
interface SizeStream extends NodeJS.ReadWriteStream {
|
||||
size: number;
|
||||
prettySize: string;
|
||||
}
|
||||
}
|
||||
|
||||
interface ISizeStream extends NodeJS.ReadWriteStream {
|
||||
size: number;
|
||||
prettySize: string;
|
||||
}
|
||||
|
||||
function size(options?: IOptions): ISizeStream;
|
||||
|
||||
namespace size {}
|
||||
function size(options?: size.Options): size.SizeStream;
|
||||
|
||||
export = size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user