global.d.ts 451 B

12345678910111213141516171819202122
  1. import type { Rule } from "ant-design-vue/es/form";
  2. declare global {
  3. interface Window {
  4. $message: any;
  5. $notification: any;
  6. $info: any;
  7. $success: any;
  8. $error: any;
  9. $warning: any;
  10. $confirm: any;
  11. $destroyAll: any;
  12. electronApi: any;
  13. }
  14. type FormRules<T extends string> = Partial<Record<T, Rule[]>>;
  15. interface SelectOption {
  16. value: string | number | boolean;
  17. label: string;
  18. }
  19. }