Skip to content

Commit

Permalink
add assets types
Browse files Browse the repository at this point in the history
  • Loading branch information
tjx666 committed Jan 26, 2024
1 parent 11c0678 commit 700b05f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/typings/assets.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
declare module '*.png' {
const path: string;
export default path;
}

declare module '*.jpg' {
const path: string;
export default path;
}

declare module '*.gif' {
const path: string;
export default path;
}

declare module '*.svg' {
const path: string;
export default path;
}

0 comments on commit 700b05f

Please sign in to comment.