You've already forked tf2wikipricing
refactor: declare GM_fetch as global for typescript
important for the compiler when mocking for unit tests
This commit is contained in:
7
global.d.ts
vendored
Normal file
7
global.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export {};
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
GM_fetch: typeof fetch; // or a more specific custom type
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"include": ["src/**/*", "declarations.d.ts", "global.d.ts"],
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist/",
|
||||
"noImplicitAny": true,
|
||||
|
||||
Reference in New Issue
Block a user