Skip to content

Commit

Permalink
Fixes png import error
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanbhasin committed Apr 29, 2022
1 parent e9dd35b commit eb5eb4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 4 additions & 0 deletions frontend/src/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "*.png" {
const value: any;
export = value;
}
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"sourceMap": true,
"target": "ES2020"
},
"include": ["src/**/*", "types/*", "*"]
"include": ["src/**/*", "types/*", "*", "src/global.d.ts"]
}
7 changes: 0 additions & 7 deletions frontend/types/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
// declare modules here

declare module "*.png" {
const value: any;
export = value;
}

export interface RentContract {
lenderAddress: string;
borrowerAddress: string;
Expand Down

0 comments on commit eb5eb4a

Please sign in to comment.