diff --git a/src/index.d.ts b/src/index.d.ts index 4983962..c96fb30 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -11,3 +11,14 @@ declare module 'next' { getLayout?: (page: React.ReactNode) => any } } + +declare global { + interface Fathom { + (command: string, ...args: any[]): void + q?: Array + } + + interface Window { + fathom?: Fathom + } +} diff --git a/tsconfig.json b/tsconfig.json index ad1a160..537dba9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,6 @@ "@/*": ["./src/*"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "./types"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] } diff --git a/types/fathom.d.ts b/types/fathom.d.ts deleted file mode 100644 index 27a3032..0000000 --- a/types/fathom.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -interface Fathom { - (command: string, ...args: any[]): void - q?: Array -} - -interface Window { - fathom?: Fathom -}