flow-interfaces.js 680 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. declare class A {
  2. one: boolean;
  3. two: { three: string }
  4. | number;
  5. }
  6. // NOTE: Flow and Babylon both fail to apply ASI here
  7. // declare class B {
  8. // one: boolean
  9. // two: { three: string }
  10. // | number
  11. // }
  12. declare interface C {
  13. one: boolean;
  14. two: { three: string }
  15. | number;
  16. }
  17. // NOTE: Flow and Babylon both fail to apply ASI here
  18. // declare interface D {
  19. // one: boolean
  20. // two: { three: string }
  21. // | number
  22. // }
  23. interface E {
  24. one: boolean;
  25. two: { three: string }
  26. | number;
  27. }
  28. // NOTE: Flow and Babylon both fail to apply ASI here
  29. // interface F {
  30. // one: boolean
  31. // two: { three: string }
  32. // | number
  33. // }