8 lines
393 B
TypeScript
8 lines
393 B
TypeScript
// Allow `import` statements to work with SVG files in the eyes of the TypeScript compiler.
|
|
// This prevents red underlines from showing and lets it know the types of imported variables are strings.
|
|
// The actual import is performed by Webpack when building, as configured in the module rules in `webpack.config.ts`.
|
|
declare module "*.svg" {
|
|
const content: string;
|
|
export default content;
|
|
}
|