2023-04-12 15:04:45 +00:00
|
|
|
declare module "*.jpg";
|
|
|
|
declare module "*.png";
|
|
|
|
declare module "*.woff2";
|
|
|
|
declare module "*.woff";
|
|
|
|
declare module "*.ttf";
|
2023-04-12 15:27:28 +00:00
|
|
|
declare module "*.scss" {
|
|
|
|
const content: Record<string, string>;
|
|
|
|
export default content;
|
2023-04-12 15:04:45 +00:00
|
|
|
}
|
2023-04-12 15:27:28 +00:00
|
|
|
|
|
|
|
declare module "*.svg";
|
2023-06-28 16:27:18 +00:00
|
|
|
|
|
|
|
declare interface Window {
|
|
|
|
__TAURI__?: {
|
|
|
|
writeText(text: string): Promise<void>;
|
2023-10-03 01:49:03 +00:00
|
|
|
invoke(command: string, payload?: Record<string, unknown>): Promise<any>;
|
|
|
|
dialog: {
|
|
|
|
save(options?: Record<string, unknown>): Promise<string | null>;
|
|
|
|
};
|
|
|
|
fs: {
|
|
|
|
writeBinaryFile(path: string, data: Uint8Array): Promise<void>;
|
|
|
|
};
|
2023-10-03 01:08:11 +00:00
|
|
|
notification:{
|
|
|
|
requestPermission(): Promise<Permission>;
|
|
|
|
isPermissionGranted(): Promise<boolean>;
|
|
|
|
sendNotification(options: string | Options): void;
|
|
|
|
};
|
2023-06-28 16:27:18 +00:00
|
|
|
};
|
|
|
|
}
|