Skip to content

Commit

Permalink
mention ts declarations in README
Browse files Browse the repository at this point in the history
  • Loading branch information
James Lees committed Feb 11, 2020
1 parent 44c92a1 commit 62c1e7e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ and then:
<script src="bower_components/pusher/dist/web/pusher.min.js"></script>
```

### Typescript

We've provided typescript declarations since v5.1.0. Most things should work
out of the box but if you need access to specific types you can import them
like so:

```
import Pusher from 'pusher-js';
import * as PusherTypes from 'pusher-js';
var presenceChannel: PusherTypes.PresenceChannel;
...
```

### React Native

**Warning it's now necessary to install
Expand Down

0 comments on commit 62c1e7e

Please sign in to comment.