diff --git a/packages/react-native-nitro-test/src/specs/TestObject.nitro.ts b/packages/react-native-nitro-test/src/specs/TestObject.nitro.ts index ddbc2cbfb..b81ba6d38 100644 --- a/packages/react-native-nitro-test/src/specs/TestObject.nitro.ts +++ b/packages/react-native-nitro-test/src/specs/TestObject.nitro.ts @@ -88,6 +88,12 @@ interface MapWrapper { map: Record secondMap: SecondMapWrapper } + +// Self-referential callback in struct (not cyclic - callback is a reference type) +export interface SelfReferentialStruct { + transform?: (config: SelfReferentialStruct) => Promise +} + export type CustomString = CustomType< string, 'CustomString', @@ -234,6 +240,7 @@ interface SharedTestObjectProps { bounceWrappedJsStyleStruct(value: WrappedJsStruct): WrappedJsStruct bounceOptionalWrapper(wrapper: OptionalWrapper): OptionalWrapper bounceOptionalCallback(value: OptionalCallback): OptionalCallback + bounceSelfReferentialStruct(value: SelfReferentialStruct): SelfReferentialStruct // ArrayBuffers createArrayBuffer(): ArrayBuffer