Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove flow exact object syntax {| brace pipe |} from TM example #41779

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ export type UnionFloat = 1.44 | 2.88 | 5.76;
export type UnionString = 'One' | 'Two' | 'Three';
export type UnionObject = {value: number} | {low: string};

export type ConstantsStruct = {|
export type ConstantsStruct = {
const1: boolean,
const2: number,
const3: string,
|};
};

export type ObjectStruct = {|
export type ObjectStruct = {
a: number,
b: string,
c?: ?string,
|};
};

export type ValueStruct = {|
export type ValueStruct = {
x: number,
y: string,
z: ObjectStruct,
|};
};

export type CustomHostObject = {};

Expand Down
Loading