[flow] Fix union indent inside of function param with a name (#4325)
Fixes #4323 See #4323 for all the contextmaster
parent
0a22f5ec15
commit
02a1db8c9f
|
@ -2384,7 +2384,7 @@ function printPathNoParens(path, options, print, args) {
|
|||
parent.type !== "TSTypeParameterInstantiation" &&
|
||||
parent.type !== "GenericTypeAnnotation" &&
|
||||
parent.type !== "TSTypeReference" &&
|
||||
parent.type !== "FunctionTypeParam" &&
|
||||
!(parent.type === "FunctionTypeParam" && !parent.name) &&
|
||||
!(
|
||||
(parent.type === "TypeAlias" ||
|
||||
parent.type === "VariableDeclarator") &&
|
||||
|
|
|
@ -49,6 +49,17 @@ type Props = {
|
|||
}
|
||||
) => void
|
||||
};
|
||||
|
||||
declare class FormData {
|
||||
append(
|
||||
options?:
|
||||
| string
|
||||
| {
|
||||
filepath?: string,
|
||||
filename?: string
|
||||
}
|
||||
): void;
|
||||
}
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
type T5 =
|
||||
| "1"
|
||||
|
@ -118,4 +129,15 @@ type Props = {
|
|||
) => void
|
||||
};
|
||||
|
||||
declare class FormData {
|
||||
append(
|
||||
options?:
|
||||
| string
|
||||
| {
|
||||
filepath?: string,
|
||||
filename?: string
|
||||
}
|
||||
): void;
|
||||
}
|
||||
|
||||
`;
|
||||
|
|
|
@ -46,3 +46,14 @@ type Props = {
|
|||
}
|
||||
) => void
|
||||
};
|
||||
|
||||
declare class FormData {
|
||||
append(
|
||||
options?:
|
||||
| string
|
||||
| {
|
||||
filepath?: string,
|
||||
filename?: string
|
||||
}
|
||||
): void;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue