type TypeMap = {
'D': string,
'C': string | [string, string],
'L': [string, string] | [string, string, any],
'm': string | [string, any],
'S': string | [string, string] | [string, string | 0, any],
'X': string | [string, any],
'M': string | [string, any],
}
export type HintCode = $Keys<TypeMap>;
export type HintModel<T: HintCode> = TypeMap[T];
export type Hints = Set<string>;
export function createHints(): Hints {
return new Set();
}
export opaque type FormatContext = number;
export function createRootFormatContext(): FormatContext {
return 0;
}
export function getChildFormatContext(
parentContext: FormatContext,
type: string,
props: Object,
): FormatContext {
return parentContext;
}