Skip to content

Commit

Permalink
refactor: update fathom types
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhojang6 committed Oct 25, 2023
1 parent bbd8ef2 commit 030239d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
11 changes: 11 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ declare module 'next' {
getLayout?: (page: React.ReactNode) => any
}
}

declare global {
interface Fathom {
(command: string, ...args: any[]): void
q?: Array<any>
}

interface Window {
fathom?: Fathom
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "./types"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
8 changes: 0 additions & 8 deletions types/fathom.d.ts

This file was deleted.

0 comments on commit 030239d

Please sign in to comment.