File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,11 @@ function will also be available globally as `chaiIterator`.
200200#### TypeScript
201201
202202[ TypeScript] [ typescript ] declarations are included in the package. To use them,
203- first ensure the [ npm declarations for Chai ] [ chai-typings ] are installed via
204- [ typings] [ typings ] .
203+ ensure Chai Iterator is installed with [ npm ] [ npm ] , then install the declarations
204+ and their dependencies via [ typings] [ typings ] .
205205
206206``` sh
207- typings install npm~chai --save
207+ typings install --save-dev npm:chai-iterator
208208```
209209
210210In the [ compiler options] [ compiler-options ] , set ` "target" ` to ` "es6" ` , or at
Original file line number Diff line number Diff line change 1- declare module "chai/lib/Assert" {
1+ import "chai" ;
2+
3+ declare module "~chai/lib/Assert" {
24
35 interface Assert {
46 isIterable ( val : any , msg ?: string ) : void ;
@@ -22,7 +24,7 @@ declare module "chai/lib/Assert" {
2224
2325}
2426
25- declare module "chai/lib/Assertion" {
27+ declare module "~ chai/lib/Assertion" {
2628
2729 interface Assertion {
2830 iterable : Assertion ;
You can’t perform that action at this time.
0 commit comments