@@ -486,6 +486,14 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
486
486
}
487
487
}
488
488
489
+ @inlinable public func _toJSValue< ReturnType> ( _ value: @escaping ( ) -> ReturnType ) -> JSValue
490
+ where ReturnType: JSValueCompatible
491
+ {
492
+ JSClosure { _ in
493
+ _toJSValue ( value ( ) )
494
+ } . jsValue
495
+ }
496
+
489
497
@propertyWrapper public final class ClosureAttribute0Optional < ReturnType>
490
498
where ReturnType: JSValueCompatible
491
499
{
@@ -521,6 +529,14 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
521
529
}
522
530
}
523
531
532
+ @inlinable public func _toJSValue< ReturnType> ( _ value: ( ( ) -> ReturnType ) ? ) -> JSValue
533
+ where ReturnType: JSValueCompatible
534
+ {
535
+ JSClosure { _ in
536
+ _toJSValue ( value ? ( ) )
537
+ } . jsValue
538
+ }
539
+
524
540
@propertyWrapper public final class ClosureAttribute0OptionalVoid {
525
541
@usableFromInline let jsObject : JSObject
526
542
@usableFromInline let name : JSString
@@ -555,6 +571,13 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
555
571
}
556
572
}
557
573
574
+ @inlinable public func _toJSValue( _ value: ( ( ) -> Void ) ? ) -> JSValue {
575
+ JSClosure { _ in
576
+ value ? ( )
577
+ return . undefined
578
+ } . jsValue
579
+ }
580
+
558
581
@propertyWrapper public final class ClosureAttribute0Void {
559
582
@usableFromInline let jsObject : JSObject
560
583
@usableFromInline let name : JSString
@@ -583,6 +606,13 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
583
606
}
584
607
}
585
608
609
+ @inlinable public func _toJSValue( _ value: @escaping ( ) -> Void ) -> JSValue {
610
+ JSClosure { _ in
611
+ value ( )
612
+ return . undefined
613
+ } . jsValue
614
+ }
615
+
586
616
@propertyWrapper public final class ClosureAttribute1 < A0, ReturnType>
587
617
where A0: JSValueCompatible , ReturnType: JSValueCompatible
588
618
{
@@ -612,6 +642,14 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
612
642
}
613
643
}
614
644
645
+ @inlinable public func _toJSValue< A0, ReturnType> ( _ value: @escaping ( A0 ) -> ReturnType ) -> JSValue
646
+ where A0: JSValueCompatible , ReturnType: JSValueCompatible
647
+ {
648
+ JSClosure {
649
+ _toJSValue ( value ( $0 [ 0 ] . fromJSValue ( ) !) )
650
+ } . jsValue
651
+ }
652
+
615
653
@propertyWrapper public final class ClosureAttribute1Optional < A0, ReturnType>
616
654
where A0: JSValueCompatible , ReturnType: JSValueCompatible
617
655
{
@@ -647,6 +685,14 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
647
685
}
648
686
}
649
687
688
+ @inlinable public func _toJSValue< A0, ReturnType> ( _ value: ( ( A0 ) -> ReturnType ) ? ) -> JSValue
689
+ where A0: JSValueCompatible , ReturnType: JSValueCompatible
690
+ {
691
+ JSClosure {
692
+ _toJSValue ( value ? ( $0 [ 0 ] . fromJSValue ( ) !) )
693
+ } . jsValue
694
+ }
695
+
650
696
@propertyWrapper public final class ClosureAttribute1OptionalVoid < A0>
651
697
where A0: JSValueCompatible
652
698
{
@@ -683,6 +729,15 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
683
729
}
684
730
}
685
731
732
+ @inlinable public func _toJSValue< A0> ( _ value: ( ( A0 ) -> Void ) ? ) -> JSValue
733
+ where A0: JSValueCompatible
734
+ {
735
+ JSClosure {
736
+ value ? ( $0 [ 0 ] . fromJSValue ( ) !)
737
+ return . undefined
738
+ } . jsValue
739
+ }
740
+
686
741
@propertyWrapper public final class ClosureAttribute1Void < A0>
687
742
where A0: JSValueCompatible
688
743
{
@@ -713,6 +768,15 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
713
768
}
714
769
}
715
770
771
+ @inlinable public func _toJSValue< A0> ( _ value: @escaping ( A0 ) -> Void ) -> JSValue
772
+ where A0: JSValueCompatible
773
+ {
774
+ JSClosure {
775
+ value ( $0 [ 0 ] . fromJSValue ( ) !)
776
+ return . undefined
777
+ } . jsValue
778
+ }
779
+
716
780
@propertyWrapper public final class ClosureAttribute2 < A0, A1, ReturnType>
717
781
where A0: JSValueCompatible , A1: JSValueCompatible , ReturnType: JSValueCompatible
718
782
{
@@ -742,6 +806,14 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
742
806
}
743
807
}
744
808
809
+ @inlinable public func _toJSValue< A0, A1, ReturnType> ( _ value: @escaping ( A0 , A1 ) -> ReturnType ) -> JSValue
810
+ where A0: JSValueCompatible , A1: JSValueCompatible , ReturnType: JSValueCompatible
811
+ {
812
+ JSClosure {
813
+ _toJSValue ( value ( $0 [ 0 ] . fromJSValue ( ) !, $0 [ 1 ] . fromJSValue ( ) !) )
814
+ } . jsValue
815
+ }
816
+
745
817
@propertyWrapper public final class ClosureAttribute2Optional < A0, A1, ReturnType>
746
818
where A0: JSValueCompatible , A1: JSValueCompatible , ReturnType: JSValueCompatible
747
819
{
@@ -777,6 +849,14 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
777
849
}
778
850
}
779
851
852
+ @inlinable public func _toJSValue< A0, A1, ReturnType> ( _ value: ( ( A0 , A1 ) -> ReturnType ) ? ) -> JSValue
853
+ where A0: JSValueCompatible , A1: JSValueCompatible , ReturnType: JSValueCompatible
854
+ {
855
+ JSClosure {
856
+ _toJSValue ( value ? ( $0 [ 0 ] . fromJSValue ( ) !, $0 [ 1 ] . fromJSValue ( ) !) )
857
+ } . jsValue
858
+ }
859
+
780
860
@propertyWrapper public final class ClosureAttribute2OptionalVoid < A0, A1>
781
861
where A0: JSValueCompatible , A1: JSValueCompatible
782
862
{
@@ -813,6 +893,15 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
813
893
}
814
894
}
815
895
896
+ @inlinable public func _toJSValue< A0, A1> ( _ value: ( ( A0 , A1 ) -> Void ) ? ) -> JSValue
897
+ where A0: JSValueCompatible , A1: JSValueCompatible
898
+ {
899
+ JSClosure {
900
+ value ? ( $0 [ 0 ] . fromJSValue ( ) !, $0 [ 1 ] . fromJSValue ( ) !)
901
+ return . undefined
902
+ } . jsValue
903
+ }
904
+
816
905
@propertyWrapper public final class ClosureAttribute2Void < A0, A1>
817
906
where A0: JSValueCompatible , A1: JSValueCompatible
818
907
{
@@ -843,6 +932,15 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
843
932
}
844
933
}
845
934
935
+ @inlinable public func _toJSValue< A0, A1> ( _ value: @escaping ( A0 , A1 ) -> Void ) -> JSValue
936
+ where A0: JSValueCompatible , A1: JSValueCompatible
937
+ {
938
+ JSClosure {
939
+ value ( $0 [ 0 ] . fromJSValue ( ) !, $0 [ 1 ] . fromJSValue ( ) !)
940
+ return . undefined
941
+ } . jsValue
942
+ }
943
+
846
944
@propertyWrapper public final class ClosureAttribute3 < A0, A1, A2, ReturnType>
847
945
where A0: JSValueCompatible , A1: JSValueCompatible , A2: JSValueCompatible , ReturnType: JSValueCompatible
848
946
{
@@ -872,6 +970,14 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
872
970
}
873
971
}
874
972
973
+ @inlinable public func _toJSValue< A0, A1, A2, ReturnType> ( _ value: @escaping ( A0 , A1 , A2 ) -> ReturnType ) -> JSValue
974
+ where A0: JSValueCompatible , A1: JSValueCompatible , A2: JSValueCompatible , ReturnType: JSValueCompatible
975
+ {
976
+ JSClosure {
977
+ _toJSValue ( value ( $0 [ 0 ] . fromJSValue ( ) !, $0 [ 1 ] . fromJSValue ( ) !, $0 [ 2 ] . fromJSValue ( ) !) )
978
+ } . jsValue
979
+ }
980
+
875
981
@propertyWrapper public final class ClosureAttribute3Optional < A0, A1, A2, ReturnType>
876
982
where A0: JSValueCompatible , A1: JSValueCompatible , A2: JSValueCompatible , ReturnType: JSValueCompatible
877
983
{
@@ -907,6 +1013,14 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
907
1013
}
908
1014
}
909
1015
1016
+ @inlinable public func _toJSValue< A0, A1, A2, ReturnType> ( _ value: ( ( A0 , A1 , A2 ) -> ReturnType ) ? ) -> JSValue
1017
+ where A0: JSValueCompatible , A1: JSValueCompatible , A2: JSValueCompatible , ReturnType: JSValueCompatible
1018
+ {
1019
+ JSClosure {
1020
+ _toJSValue ( value ? ( $0 [ 0 ] . fromJSValue ( ) !, $0 [ 1 ] . fromJSValue ( ) !, $0 [ 2 ] . fromJSValue ( ) !) )
1021
+ } . jsValue
1022
+ }
1023
+
910
1024
@propertyWrapper public final class ClosureAttribute5 < A0, A1, A2, A3, A4, ReturnType>
911
1025
where A0: JSValueCompatible , A1: JSValueCompatible , A2: JSValueCompatible , A3: JSValueCompatible , A4: JSValueCompatible , ReturnType: JSValueCompatible
912
1026
{
@@ -936,6 +1050,14 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
936
1050
}
937
1051
}
938
1052
1053
+ @inlinable public func _toJSValue< A0, A1, A2, A3, A4, ReturnType> ( _ value: @escaping ( A0 , A1 , A2 , A3 , A4 ) -> ReturnType ) -> JSValue
1054
+ where A0: JSValueCompatible , A1: JSValueCompatible , A2: JSValueCompatible , A3: JSValueCompatible , A4: JSValueCompatible , ReturnType: JSValueCompatible
1055
+ {
1056
+ JSClosure {
1057
+ _toJSValue ( value ( $0 [ 0 ] . fromJSValue ( ) !, $0 [ 1 ] . fromJSValue ( ) !, $0 [ 2 ] . fromJSValue ( ) !, $0 [ 3 ] . fromJSValue ( ) !, $0 [ 4 ] . fromJSValue ( ) !) )
1058
+ } . jsValue
1059
+ }
1060
+
939
1061
@propertyWrapper public final class ClosureAttribute5Optional < A0, A1, A2, A3, A4, ReturnType>
940
1062
where A0: JSValueCompatible , A1: JSValueCompatible , A2: JSValueCompatible , A3: JSValueCompatible , A4: JSValueCompatible , ReturnType: JSValueCompatible
941
1063
{
@@ -970,3 +1092,11 @@ public enum String_or_record_String_to_String_or_seq_of_seq_of_String: JSValueCo
970
1092
}
971
1093
}
972
1094
}
1095
+
1096
+ @inlinable public func _toJSValue< A0, A1, A2, A3, A4, ReturnType> ( _ value: ( ( A0 , A1 , A2 , A3 , A4 ) -> ReturnType ) ? ) -> JSValue
1097
+ where A0: JSValueCompatible , A1: JSValueCompatible , A2: JSValueCompatible , A3: JSValueCompatible , A4: JSValueCompatible , ReturnType: JSValueCompatible
1098
+ {
1099
+ JSClosure {
1100
+ _toJSValue ( value ? ( $0 [ 0 ] . fromJSValue ( ) !, $0 [ 1 ] . fromJSValue ( ) !, $0 [ 2 ] . fromJSValue ( ) !, $0 [ 3 ] . fromJSValue ( ) !, $0 [ 4 ] . fromJSValue ( ) !) )
1101
+ } . jsValue
1102
+ }
0 commit comments