📜  导入图像时 vscode 反应找不到模块 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:15.689000             🧑  作者: Mango

代码示例1
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;
}