From db87a2eef525a4ec7161fe3b4c94575aecbc1b31 Mon Sep 17 00:00:00 2001 From: Toby Li Date: Wed, 19 Dec 2018 16:30:25 +0000 Subject: [PATCH] change interface to type --- types/browser-bunyan/index.d.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/types/browser-bunyan/index.d.ts b/types/browser-bunyan/index.d.ts index 0057294174..24d4b3e874 100644 --- a/types/browser-bunyan/index.d.ts +++ b/types/browser-bunyan/index.d.ts @@ -31,13 +31,9 @@ declare namespace BrowserBunyan { css?: Partial; } - interface ConsoleFormattedStream { - new(options?: ConsoleFormattedStreamOptions): NodeJS.WritableStream; - } + type ConsoleFormattedStream = new(options?: ConsoleFormattedStreamOptions) => NodeJS.WritableStream; - interface ConsoleRawStream { - new(options?: ConsoleFormattedStreamOptions): NodeJS.WritableStream; - } + type ConsoleRawStream = new(options?: ConsoleFormattedStreamOptions) => NodeJS.WritableStream; } type BrowserBunyan = typeof bunyan & {