Skip to content

Commit

Permalink
Added support for typescript
Browse files Browse the repository at this point in the history
Fixes Add types for Typescript andrezimpel#37
  • Loading branch information
nrandell committed Sep 24, 2021
1 parent 3352c3c commit 86142ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module "gatsby-plugin-gdpr-cookies" {
export function initializeAndTrack(location: Location): void;
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
],
"license": "MIT",
"main": "index.js",
"types": "index.d.ts",
"peerDependencies": {
"gatsby": "^2.24.77 || ^3.0.0",
"react": "^16.13.1 || ^17.0.1",
Expand Down

0 comments on commit 86142ac

Please sign in to comment.