📅  最后修改于: 2022-03-11 15:04:15.689000             🧑  作者: Mango
create global.d.ts file in folder src,and add this line
declare module "*.jpg" {
export default "" as string;
}
declare module "*.png" {
export default "" as string;
}