flow2schema/tests/samples/intersections.js

16 lines
163 B
JavaScript
Raw Normal View History

2017-11-03 10:34:36 +03:00
type A = {a: number};
type B = {b: string};
type C = {c: boolean};
type X = A & B;
type Y = {
y: A & B & C,
};
class Z {
z: A & C;
}
2017-11-09 12:10:21 +03:00
export {X, Y, Z};