File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -719,7 +719,7 @@ module Emit =
719
719
| " DOMString" | " USVString" -> " string"
720
720
| " DOMTimeStamp" -> " number"
721
721
| " EventListener" -> " EventListenerOrEventListenerObject"
722
- | " double" | " float" | " unrestricted float" -> " number"
722
+ | " double" | " float" | " unrestricted double " | " unrestricted float" -> " number"
723
723
| " Function" -> " Function"
724
724
| " FrozenArray" -> " ReadonlyArray"
725
725
| " long" | " long long" | " signed long" | " signed long long" | " unsigned long" | " unsigned long long" -> " number"
@@ -869,7 +869,7 @@ module Emit =
869
869
( if p.Variadic then " ..." else " " ) +
870
870
( AdjustParamName p.Name) +
871
871
( if isOptional then " ?: " else " : " ) +
872
- pType +
872
+ ( if p.Variadic && pType.Contains ( " | " ) then " ( " + pType + " ) " else pType ) +
873
873
( if p.Variadic then " []" else " " )
874
874
String.Join( " , " , ( List.map paramToString ps))
875
875
You can’t perform that action at this time.
0 commit comments