strona-czynna/src/back/globals.d.ts

40 lines
1.1 KiB
TypeScript

declare module "*.svg" {
export const getContent: () => Promise<string>;
export const getBuffer: () => Promise<Buffer>;
export const getBase64: () => Promise<string>;
export const url: string;
export const path: string;
}
declare module "*.png" {
export const getContent: () => Promise<string>;
export const getBuffer: () => Promise<Buffer>;
export const getBase64: () => Promise<string>;
export const url: string;
export const path: string;
}
declare module "*.jpg" {
export const getContent: () => Promise<string>;
export const getBuffer: () => Promise<Buffer>;
export const getBase64: () => Promise<string>;
export const url: string;
export const path: string;
}
declare module "*.jpeg" {
export const getContent: () => Promise<string>;
export const getBuffer: () => Promise<Buffer>;
export const getBase64: () => Promise<string>;
export const url: string;
export const path: string;
}
declare module "*.webp" {
export const getContent: () => Promise<string>;
export const getBuffer: () => Promise<Buffer>;
export const getBase64: () => Promise<string>;
export const url: string;
export const path: string;
}