From f7c3fc2b5a7e469cde0df354838bdf1b889b06c5 Mon Sep 17 00:00:00 2001 From: Tanguy Krotoff Date: Fri, 15 Jan 2016 02:49:28 +0100 Subject: [PATCH] Options and SizeStream should be inside the namespace --- gulp-size/gulp-size.d.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gulp-size/gulp-size.d.ts b/gulp-size/gulp-size.d.ts index 022e9b171..ba13c55a2 100644 --- a/gulp-size/gulp-size.d.ts +++ b/gulp-size/gulp-size.d.ts @@ -6,20 +6,20 @@ /// 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; }