Skip to content

Commit

Permalink
Make getTypeAnnotation signature from TypeScript be equal to the on…
Browse files Browse the repository at this point in the history
…e from Flow
  • Loading branch information
ken0nek committed Apr 26, 2023
1 parent aab11c2 commit 5c96365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ function getTypeAnnotation<T>(
name: string,
annotation: $FlowFixMe | ASTNode,
defaultValue: $FlowFixMe | void,
withNullDefault: boolean,
types: TypeDeclarationMap,
buildSchema: (property: PropAST, types: TypeDeclarationMap) => ?NamedShape<T>,
): $FlowFixMe {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function buildPropSchema(
name,
typeAnnotation,
defaultValue,
false, // Just to make `getTypeAnnotation` signature match with the one from Flow
types,
buildPropSchema,
),
Expand Down

0 comments on commit 5c96365

Please sign in to comment.