flow2schema/tests/samples/diffs/source.js

14 lines
147 B
JavaScript

type A = {
x: string,
y: boolean,
};
type B = {
y: boolean,
};
type X = $Diff<A, B>;
type Y = $Diff<A, {x: string}>;
export {X, Y};