Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit d51414d

Browse files
committed
sem: don't map Flow Identifier>optional flag
Skip mapping 'optional' field on Indetifier for Flow "Optional Prameters" https://flow.org/en/docs/types/functions/#toc-optional-parameters `function acceptsNumberMaybe (value?: number) {}` Signed-off-by: Alexander Bezzubov <[email protected]>
1 parent 097c630 commit d51414d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver/normalizer/normalizer.go

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ var Normalizers = []Mapping{
8383
{Name: "name", Op: Var("name")},
8484
//FIXME(bzz): map Flow variable types properly
8585
{Name: "typeAnnotation", Drop: true, Op: Any()},
86+
//FIXME(bzz): map Flow "Optional Prameter" properly
87+
{Name: "optional", Drop: true, Op: Any()},
8688
},
8789
Obj{
8890
"Name": Var("name"),

0 commit comments

Comments
 (0)