@@ -8,9 +8,6 @@ let rec remove_option ~(label : Asttypes.Noloc.arg_label)
8
8
| Tconstr (Path. Pident id, [t], _), Optional lbl when Ident. name id = " option"
9
9
->
10
10
Some (lbl, t)
11
- | Tconstr (Pdot (Path. Pident name_space, id, _), [t], _), Optional lbl
12
- when Ident. name name_space = " FB" && id = " option" ->
13
- Some (lbl, t)
14
11
| Tlink t , _ -> t |> remove_option ~label
15
12
| _ -> None
16
13
@@ -75,11 +72,10 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
75
72
}
76
73
in
77
74
match (path |> path_to_list |> List. rev, params_translation) with
78
- | ([" FB" ; " bool" ] | [" bool" ]), [] -> {dependencies = [] ; type_ = boolean_t}
79
- | ([" FB" ; " int" ] | [" int" ]), [] -> {dependencies = [] ; type_ = number_t}
80
- | ([" FB" ; " float" ] | [" float" ]), [] -> {dependencies = [] ; type_ = number_t}
81
- | ( ( [" FB" ; " string" ]
82
- | [" string" ]
75
+ | [" bool" ], [] -> {dependencies = [] ; type_ = boolean_t}
76
+ | [" int" ], [] -> {dependencies = [] ; type_ = number_t}
77
+ | [" float" ], [] -> {dependencies = [] ; type_ = number_t}
78
+ | ( ( [" string" ]
83
79
| [" String" ; " t" ]
84
80
| [" Stdlib" ; " String" ; " t" ]
85
81
| [" Js" ; (" String" | " String2" ); " t" ] ),
@@ -118,9 +114,8 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
118
114
}
119
115
| ([" Js" ; " Re" ; " t" ] | [" RegExp" ; " t" ] | [" Stdlib" ; " RegExp" ; " t" ]), [] ->
120
116
{dependencies = [] ; type_ = regexp_t}
121
- | ([" FB" ; " unit" ] | [" unit" ]), [] -> {dependencies = [] ; type_ = unit_t}
122
- | ( ([" FB" ; " array" ] | [" array" ] | [" Js" ; (" Array" | " Array2" ); " t" ]),
123
- [param_translation] ) ->
117
+ | [" unit" ], [] -> {dependencies = [] ; type_ = unit_t}
118
+ | ([" array" ] | [" Js" ; (" Array" | "Array2" ); "t" ]), [param_translation] ->
124
119
{param_translation with type_ = Array (param_translation.type_, Mutable )}
125
120
| [" ImmutableArray" ; " t" ], [param_translation] ->
126
121
{param_translation with type_ = Array (param_translation.type_, Immutable )}
@@ -220,7 +215,7 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
220
215
| [" Jsx" ; " element" ] ),
221
216
[] ) ->
222
217
{dependencies = [] ; type_ = EmitType. type_react_element}
223
- | ([ " FB " ; " option" ] | [ " option " ]) , [param_translation] ->
218
+ | [ " option" ], [param_translation] ->
224
219
{param_translation with type_ = Option param_translation.type_}
225
220
| ( ( [" Js" ; " Undefined" ; " t" ]
226
221
| [" Undefined" ; " t" ]
@@ -253,6 +248,7 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
253
248
| ( ([" Js" ; " Dict" ; " t" ] | [" Dict" ; " t" ] | [" dict" ] | [" Stdlib" ; " Dict" ; " t" ]),
254
249
[param_translation] ) ->
255
250
{param_translation with type_ = Dict param_translation.type_}
251
+ | [" Stdlib_JSON" ; " t" ], [] -> {dependencies = [] ; type_ = unknown}
256
252
| _ -> default_case ()
257
253
258
254
type process_variant = {
0 commit comments