Typescript notes
Cannot find module issue
Cannot find module '*.jpg'.ts(2307)
Cannot find module '*.png'.ts(2307)
Cannot find module '*.svg'.ts(2307)
Cannot find module '*.json'.ts(2307)
Solution
Create typings.d.ts
at root
.
declare module '*.jpg';
declare module '*.png';
declare module '*.json';
declare module '*.svg';
竟然无法拒绝你的打赏
