Skip to content

Commit

Permalink
fix(typings): revert to previous typings + remove export of strava co…
Browse files Browse the repository at this point in the history
…nst (#102)
  • Loading branch information
ntziolis committed Oct 19, 2020
1 parent 19ea4e0 commit 7880953
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ Supports many but not all Strava API endpoints:
npm install strava-v3
```

## Import syntax
Importing only the library:
```
import strava from 'strava-v3';
```
Importing both the library as well as interfaces:
```
import { default as strava, Strava } from 'strava-v3';
```

## Quick start

* Create an application at [strava.com/settings/api](https://www.strava.com/settings/api) and make note of your `access_token`
Expand Down
5 changes: 2 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,5 @@ export interface Strava {
oauth: OAuthRoutes;
}

declare const strava : Strava;
export = strava;
export as namespace strava;
declare const strava: Strava;
export default strava;

0 comments on commit 7880953

Please sign in to comment.