Skip to content

Commit

Permalink
Config: 이미지 파일 import를 위한 확장자 타입 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
dbstjrals committed Nov 7, 2023
1 parent 668bbd3 commit 9557eb2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 6 additions & 0 deletions src/types/image.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module '*.jpg';
declare module '*.jpeg';
declare module '*.png';
declare module '*.gif';
declare module '*.webp';
declare module '*.svg';
11 changes: 3 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -20,7 +16,6 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src"
]
"typeRoots": ["node_modules/@types", "src/types"],
"include": ["src"]
}

0 comments on commit 9557eb2

Please sign in to comment.