global.d.ts 516 B

12345678910111213141516171819202122
  1. declare module "*.jpg";
  2. declare module "*.png";
  3. declare module "*.woff2";
  4. declare module "*.woff";
  5. declare module "*.ttf";
  6. declare module "*.scss" {
  7. const content: Record<string, string>;
  8. export default content;
  9. }
  10. declare module "*.svg";
  11. declare interface Window {
  12. __TAURI__?: {
  13. writeText(text: string): Promise<void>;
  14. notification:{
  15. requestPermission(): Promise<Permission>;
  16. isPermissionGranted(): Promise<boolean>;
  17. sendNotification(options: string | Options): void;
  18. };
  19. };
  20. }