Options and SizeStream should be inside the namespace

This commit is contained in:
Tanguy Krotoff
2016-01-15 02:49:28 +01:00
parent 1e3e963bf5
commit f7c3fc2b5a
+12 -12
View File
@@ -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;
}