flow2schema/tests/samples/readOnly.js

11 lines
123 B
JavaScript

type X = {
x: string;
y: boolean;
}
type Y = $ReadOnly<X>;
type Z = $ReadOnly<{z: string}>;
export type {Y, Z};