flow2schema/tests/samples/either/source.js

15 lines
249 B
JavaScript
Raw Normal View History

2017-12-03 14:57:44 +03:00
type Type = {
a: $Either<string, boolean>,
};
interface Interface {
a: $Either<string, boolean, number>;
aa: $Either<() => number, () => boolean>;
}
class Class {
a: $Either<string, () => void>;
}
export {Type, Interface, Class};