Commit Graph

4 Commits

Author SHA1 Message Date
Eric Freese
46b0ea8eb9 Fix equal function when passing in an array
For example, `expect([1, 2, 3]).to.equal([1, 2, 3])` previously would
give the compilation error:

> Argument of type 'number[]' is not assignable to parameter of type 'number'.
2018-11-14 00:20:14 -07:00
Garth Kidd
3638491eae Add typings for reject/rejects from code 5.0.0
Documentation:

> * [`await reject([type], [message])`][artm]
>
> Asserts that the `Promise` reference value rejects with an exception
> when called

[artm]: https://github.com/hapijs/code/blob/v5.0.0/API.md#await-rejecttype-message
2018-02-08 22:43:16 +11:00
Andy
b6c343f2b3 Apply new lint rules to yet more packages (#15548)
* Apply new lint rules to yet more packages

* Fix leaflet lint
2017-03-31 11:01:26 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00