Skip to content

Commit

Permalink
fix: global.d types
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilous committed Mar 21, 2024
1 parent 060a728 commit b639f38
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion apps/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"configs/**/*.ts",
"./index.ts",
"testSrc/**/*.ts",
"configs/jest/jest.setup.ts"
"configs/jest/jest.setup.ts",
"src/types/global.d.ts"
]
}
8 changes: 8 additions & 0 deletions apps/web/src/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ declare global {
interface ProcessEnv extends Environments { }
}
}

declare module "*.png";
declare module "*.svg";
declare module "*.jpeg";
declare module "*.jpg";
declare module "*.module.css";
declare module "*.module.scss";
declare module "*.module.sass";
2 changes: 1 addition & 1 deletion apps/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
"noEmit": true
},
"exclude": ["node_modules"],
"include": ["src", "next-env.d.ts", "./src/types/global.d.ts"]
"include": ["src", "next-env.d.ts", "src/types/global.d.ts"]
}
7 changes: 0 additions & 7 deletions packages/typescript-config/src/types/global.d.ts

This file was deleted.

0 comments on commit b639f38

Please sign in to comment.