Skip to content

Commit

Permalink
Merge pull request #423 from pusher/typescript-support-in-readme
Browse files Browse the repository at this point in the history
mention ts declarations in README
  • Loading branch information
James Lees authored Feb 11, 2020
2 parents 44c92a1 + 62c1e7e commit ca65b2a
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 ca65b2a

Please sign in to comment.