@@ -60,7 +60,7 @@ public extension Module {
60
60
/// - Returns: An array of `Value` objects representing the outputs.
61
61
/// - Throws: An error if method execution fails.
62
62
func execute( _ method: String , _ inputs: [ ValueConvertible ] ) throws -> [ Value ] {
63
- try __executeMethod ( method, withInputs: inputs. map { $0. objcValue ( ) } )
63
+ try __executeMethod ( method, withInputs: inputs. map { $0. asValue ( ) } )
64
64
}
65
65
66
66
/// Executes a specific method with a single input value.
@@ -72,7 +72,7 @@ public extension Module {
72
72
/// - Returns: An array of `Value` objects representing the outputs.
73
73
/// - Throws: An error if method execution fails.
74
74
func execute( _ method: String , _ input: ValueConvertible ) throws -> [ Value ] {
75
- try __executeMethod ( method, withInputs: [ input. objcValue ( ) ] )
75
+ try __executeMethod ( method, withInputs: [ input. asValue ( ) ] )
76
76
}
77
77
78
78
/// Executes the "forward" method with the provided input values.
@@ -82,7 +82,7 @@ public extension Module {
82
82
/// - Returns: An array of `Value` objects representing the outputs.
83
83
/// - Throws: An error if method execution fails.
84
84
func forward( _ inputs: [ ValueConvertible ] ) throws -> [ Value ] {
85
- try __executeMethod ( " forward " , withInputs: inputs. map { $0. objcValue ( ) } )
85
+ try __executeMethod ( " forward " , withInputs: inputs. map { $0. asValue ( ) } )
86
86
}
87
87
88
88
/// Executes the "forward" method with a single input value.
@@ -92,6 +92,6 @@ public extension Module {
92
92
/// - Returns: An array of `Value` objects representing the outputs.
93
93
/// - Throws: An error if method execution fails.
94
94
func forward( _ input: ValueConvertible ) throws -> [ Value ] {
95
- try __executeMethod ( " forward " , withInputs: [ input. objcValue ( ) ] )
95
+ try __executeMethod ( " forward " , withInputs: [ input. asValue ( ) ] )
96
96
}
97
97
}
0 commit comments