Skip to content

Commit

Permalink
Add instructions for TypeScript and ES6 Import
Browse files Browse the repository at this point in the history
  • Loading branch information
mesaugat committed Oct 25, 2017
1 parent b88f7de commit 1c37d3d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,35 @@ yarn add chai-exclude --dev

## Usage

#### Require

```js
const chai = require('chai');
const chaiExclude = require('chai-exclude');

chai.use(chaiExclude);
```

#### ES6 Import

```js
import { use } from 'chai';
import chaiExclude from 'chai-exclude';

use(chaiExclude);
```

#### TypeScript

```js
import { use } from 'chai';
import chaiExclude = require('chai-exclude');

use(chaiExclude);

// The typings for chai-exclude are included with the package itself.
```

## Example

### a) excluding
Expand Down

0 comments on commit 1c37d3d

Please sign in to comment.