flow2schema/tests/samples/unions.js

17 lines
213 B
JavaScript
Raw Normal View History

2017-10-29 16:00:09 +03:00
type Type = {
a: string | number,
b: ?string,
};
interface Interface {
a: string | number;
b: ?string;
}
class Class {
a: string | number;
b: ?string;
}
2017-11-09 12:10:21 +03:00
export {Type, Interface, Class};