From 808267e6e8008f764eca87aa31a71bff373d802d Mon Sep 17 00:00:00 2001 From: Jonatan Magnusson Date: Tue, 17 Sep 2019 12:56:14 +0200 Subject: [PATCH] Make Chai PropertyChange argument 'property' optional (#38405) Chai allows passing a single argument to its increase, decrease and change tests: ```ts let y; expect(() => { y += 1 }).to.increase(() => y); ``` The type definitions of PropertyChange, used by the three tests mentionds, did not allow passing a single argument. --- types/chai/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/chai/index.d.ts b/types/chai/index.d.ts index c3af20d432..238a00daa4 100644 --- a/types/chai/index.d.ts +++ b/types/chai/index.d.ts @@ -379,7 +379,7 @@ declare namespace Chai { } interface PropertyChange { - (object: Object, property: string, message?: string): Assertion; + (object: Object, property?: string, message?: string): Assertion; } export interface Assert {