globals.d.ts 285 B

12345678910111213
  1. // 通用声明
  2. declare type ClassName = { [className: string]: any } | ClassName[] | string;
  3. declare interface ImportMeta {
  4. env: {
  5. MODE: 'mock' | 'development' | 'test' | 'release' | 'site';
  6. };
  7. }
  8. declare module '*.svg' {
  9. const content: string;
  10. export default content;
  11. }