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.
This commit is contained in:
Jonatan Magnusson 2019-09-17 12:56:14 +02:00 committed by Orta
parent bf75bcd274
commit 808267e6e8

View File

@ -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 {