2017-09-25 14:45:40 +03:00
|
|
|
declare class A {
|
|
|
|
one: boolean;
|
|
|
|
two: { three: string }
|
|
|
|
| number;
|
|
|
|
}
|
|
|
|
|
2018-12-27 16:05:19 +03:00
|
|
|
// NOTE: Flow and Babel both fail to apply ASI here
|
2017-09-25 14:45:40 +03:00
|
|
|
// declare class B {
|
|
|
|
// one: boolean
|
|
|
|
// two: { three: string }
|
|
|
|
// | number
|
|
|
|
// }
|
|
|
|
|
|
|
|
declare interface C {
|
|
|
|
one: boolean;
|
|
|
|
two: { three: string }
|
|
|
|
| number;
|
|
|
|
}
|
|
|
|
|
2018-12-27 16:05:19 +03:00
|
|
|
// NOTE: Flow and Babel both fail to apply ASI here
|
2017-09-25 14:45:40 +03:00
|
|
|
// declare interface D {
|
|
|
|
// one: boolean
|
|
|
|
// two: { three: string }
|
|
|
|
// | number
|
|
|
|
// }
|
|
|
|
|
|
|
|
interface E {
|
|
|
|
one: boolean;
|
|
|
|
two: { three: string }
|
|
|
|
| number;
|
|
|
|
}
|
|
|
|
|
2018-12-27 16:05:19 +03:00
|
|
|
// NOTE: Flow and Babel both fail to apply ASI here
|
2017-09-25 14:45:40 +03:00
|
|
|
// interface F {
|
|
|
|
// one: boolean
|
|
|
|
// two: { three: string }
|
|
|
|
// | number
|
|
|
|
// }
|