@@ -145,6 +145,47 @@ exports[`ts2swift > snapshots Swift output for MultipleImportedTypes.d.ts > Mult
145145"
146146` ;
147147
148+ exports [` ts2swift > snapshots Swift output for OptionalNullUndefined.d.ts > OptionalNullUndefined 1` ] = `
149+ "// NOTICE: This is auto-generated code by BridgeJS from JavaScriptKit,
150+ // DO NOT EDIT.
151+ //
152+ // To update this file, just rebuild your project or run
153+ // \` swift package bridge-js\` .
154+
155+ @_spi(Experimental) @_spi(BridgeJS) import JavaScriptKit
156+
157+ @JSFunction func roundTripNumberNull(_ value: Optional<Double >) throws(JSException) -> Optional<Double >
158+
159+ @JSFunction func roundTripNumberUndefined(_ value: JSUndefinedOr<Double >) throws(JSException) -> JSUndefinedOr<Double >
160+
161+ @JSFunction func roundTripStringNull(_ value: Optional<String >) throws(JSException) -> Optional<String >
162+
163+ @JSFunction func roundTripStringUndefined(_ value: JSUndefinedOr<String >) throws(JSException) -> JSUndefinedOr<String >
164+
165+ @JSFunction func roundTripBooleanNull(_ value: JSObject) throws(JSException) -> JSObject
166+
167+ @JSFunction func roundTripBooleanUndefined(_ value: JSObject) throws(JSException) -> JSObject
168+
169+ @JSFunction func optionalNumberParamNull(_ x: Double, _ maybe: Optional<Double >) throws(JSException) -> Double
170+
171+ @JSFunction func optionalNumberParamUndefined(_ x: Double, _ maybe: JSUndefinedOr<Double >) throws(JSException) -> Double
172+
173+ @JSFunction func roundTripMyInterfaceNull(_ value: Optional<MyInterface >) throws(JSException) -> Optional<MyInterface >
174+
175+ @JSClass struct MyInterface {
176+ }
177+
178+ @JSFunction func roundTripMyInterfaceUndefined(_ value: JSUndefinedOr<MyInterface >) throws(JSException) -> JSUndefinedOr<MyInterface >
179+
180+ @JSClass struct WithOptionalFields {
181+ @JSGetter var valueOrNull : Optional <MyInterface >
182+ @JSSetter func setValueOrNull(_ value: Optional<MyInterface >) throws(JSException)
183+ @JSGetter var valueOrUndefined: JSUndefinedOr<MyInterface >
184+ @JSSetter func setValueOrUndefined(_ value: JSUndefinedOr<MyInterface >) throws(JSException)
185+ }
186+ "
187+ `;
188+
148189exports[`ts2swift > snapshots Swift output for PrimitiveParameters.d.ts > PrimitiveParameters 1`] = `
149190"// NOTICE: This is auto-generated code by BridgeJS from JavaScriptKit,
150191// DO NOT EDIT.
0 commit comments