env.d.ts 527 B

1234567891011121314151617181920212223
  1. declare class Browser {
  2. firefox: boolean;
  3. ie: boolean;
  4. edge: boolean;
  5. newEdge: boolean;
  6. weChat: boolean;
  7. version: string | number;
  8. }
  9. declare class Env {
  10. browser: Browser;
  11. node: boolean;
  12. wxa: boolean;
  13. worker: boolean;
  14. svgSupported: boolean;
  15. touchEventsSupported: boolean;
  16. pointerEventsSupported: boolean;
  17. domSupported: boolean;
  18. transformSupported: boolean;
  19. transform3dSupported: boolean;
  20. hasGlobalWindow: boolean;
  21. }
  22. declare const env: Env;
  23. export default env;