refactor: update fathom types

This commit is contained in:
jinhojang6 2023-10-25 23:35:39 +09:00 committed by Jinho Jang
parent bbd8ef2ede
commit 030239dd52
3 changed files with 12 additions and 9 deletions

11
src/index.d.ts vendored
View File

@ -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
}
}

View File

@ -19,6 +19,6 @@
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "./types"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}

8
types/fathom.d.ts vendored
View File

@ -1,8 +0,0 @@
interface Fathom {
(command: string, ...args: any[]): void
q?: Array<any>
}
interface Window {
fathom?: Fathom
}