Skip to content

Commit

Permalink
Merge pull request #49 from leonelv/feature/add-typescript-definitions
Browse files Browse the repository at this point in the history
Add typings for fetch-cookie
  • Loading branch information
valeriangalliat committed May 25, 2020
2 parents 47c8c56 + f5df9e0 commit 0a01083
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { CookieJar } from 'tough-cookie'

declare function fetchCookieDecorator(fetch: Function, jar?: CookieJar): any;

export = fetchCookieDecorator;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"files": [
"index.js",
"node-fetch.js",
"index.d.ts",
"README.md",
"UNLICENSE"
],
Expand All @@ -28,6 +29,7 @@
"test": "mocha"
},
"dependencies": {
"@types/tough-cookie": "^2.3.3 || ^4.0.0",
"tough-cookie": "^2.3.3 || ^3.0.1 || ^4.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 0a01083

Please sign in to comment.