diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..eb7ff73 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,3 @@ +declare module "gatsby-plugin-gdpr-cookies" { + export function initializeAndTrack(location: Location): void; +} diff --git a/package.json b/package.json index 69f5f38..65b58b7 100644 --- a/package.json +++ b/package.json @@ -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",