Skip to content

Commit 841a7bb

Browse files
committed
Merge branch 'fix/typings'
Merges pull request #3
2 parents a3903c4 + 7c31b85 commit 841a7bb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

210210
In the [compiler options][compiler-options], set `"target"` to `"es6"`, or at

chai-iterator.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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;

0 commit comments

Comments
 (0)