While reviewing a javascript codebase, I stumbled upon a section of code that appears as follows:
export type RouteReducerProps = {|
error?: Error,
isResolving: boolean,
isResolved: boolean,
hasFailed: boolean,
|};
Upon closer inspection, it seems to be a javascript object literal declaration. However, the presence of vertical bars within the curly braces is quite unfamiliar to me. What exactly is their purpose in this context?