mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
* remove branded files * use branding repo * include favicons * nixpkg fixup * win fix ico path * fix fmt * skip licensenses for dev builds * review fixup * test * test * ci test * ci test * ci test * fix ci
19 lines
552 B
TypeScript
19 lines
552 B
TypeScript
// Allow `import` statements to work with image files in the eyes of the TypeScript compiler.
|
|
// This prevents red underlines from showing and lets it know the types of imported variables for image data.
|
|
// The actual import is performed by Vite when building, as configured in the `resolve` aliases in `vite.config.ts`.
|
|
|
|
declare module "*.svg" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.png" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.jpg" {
|
|
const content: string;
|
|
export default content;
|
|
}
|