Skip to content

Commit 43c855d

Browse files
committedDec 18, 2024
Remove the arity parameter of type function$.
1 parent bcb1f74 commit 43c855d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+268
-411
lines changed
 

‎analysis/src/CompletionBackEnd.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ let rec completeTypedValue ?(typeArgContext : typeArgContext option) ~rawOpens
13621362
| Tlink t1
13631363
| Tsubst t1
13641364
| Tpoly (t1, [])
1365-
| Tconstr (Pident {name = "function$"}, [t1; _], _) ->
1365+
| Tconstr (Pident {name = "function$"}, [t1], _) ->
13661366
fnReturnsTypeT t1
13671367
| Tarrow _ -> (
13681368
match TypeUtils.extractFunctionType ~env ~package:full.package t with

‎analysis/src/CompletionJsx.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ let getJsxLabels ~componentPath ~findTypeOfValue ~package =
238238
| Tlink t1
239239
| Tsubst t1
240240
| Tpoly (t1, [])
241-
| Tconstr (Pident {name = "function$"}, [t1; _], _) ->
241+
| Tconstr (Pident {name = "function$"}, [t1], _) ->
242242
getLabels t1
243243
| Tconstr (p, [propsType], _) when Path.name p = "React.component" -> (
244244
let rec getPropsType (t : Types.type_expr) =

0 commit comments

Comments
 (0)