flow2schema/tests/samples/unions.js

17 lines
213 B
JavaScript

type Type = {
a: string | number,
b: ?string,
};
interface Interface {
a: string | number;
b: ?string;
}
class Class {
a: string | number;
b: ?string;
}
export {Type, Interface, Class};