From da85ce8409896b985f94467793faee849cf08f9a Mon Sep 17 00:00:00 2001 From: smhxx Date: Tue, 23 Jan 2018 13:58:45 -0600 Subject: [PATCH] mocha: reporter() method takes optional second parameter (#23026) --- types/mocha/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/mocha/index.d.ts b/types/mocha/index.d.ts index df0a1c66dd..236c3429b1 100644 --- a/types/mocha/index.d.ts +++ b/types/mocha/index.d.ts @@ -86,9 +86,9 @@ declare class Mocha { bail(value?: boolean): Mocha; addFile(file: string): Mocha; /** Sets reporter by name, defaults to "spec". */ - reporter(name: string): Mocha; + reporter(name: string, reporterOptions?: any): Mocha; /** Sets reporter constructor, defaults to mocha.reporters.Spec. */ - reporter(reporter: ReporterConstructor): Mocha; + reporter(reporter: ReporterConstructor, reporterOptions?: any): Mocha; ui(value: string): Mocha; grep(value: string): Mocha; grep(value: RegExp): Mocha;