index.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. export declare namespace Platform {
  2. const IS_MAC: boolean;
  3. const IS_IOS: boolean;
  4. const IS_WINDOWS: boolean;
  5. const IS_IE: boolean;
  6. const IS_IE11: boolean;
  7. const IS_EDGE: boolean;
  8. /**
  9. * A flag indicating whether the browser is Netscape (including Firefox).
  10. */
  11. const IS_NETSCAPE: boolean;
  12. /**
  13. * A flag indicating whether the the this is running inside a Chrome App.
  14. */
  15. const IS_CHROME_APP: boolean;
  16. const IS_CHROME: boolean;
  17. const IS_OPERA: boolean;
  18. const IS_FIREFOX: boolean;
  19. const IS_SAFARI: boolean;
  20. /**
  21. * A flag indicating whether this device supports touchstart/-move/-end
  22. * events (Apple iOS, Android, Chromebook and Chrome Browser on touch-enabled
  23. * devices).
  24. */
  25. const SUPPORT_TOUCH: boolean;
  26. /**
  27. * A flag indicating whether this device supports Microsoft pointer events.
  28. */
  29. const SUPPORT_POINTER: boolean;
  30. const SUPPORT_PASSIVE: boolean;
  31. /**
  32. * A flag indicating whether foreignObject support is not available. This
  33. * is the case for Opera, older SVG-based browsers and all versions of IE.
  34. */
  35. const NO_FOREIGNOBJECT: boolean;
  36. const SUPPORT_FOREIGNOBJECT: boolean;
  37. }
  38. export declare namespace Platform {
  39. function getHMRStatus(): any;
  40. function isApplyingHMR(): boolean;
  41. function isEventSupported(event: string): boolean;
  42. }