react-native-nitro-modules
Version:
Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI.
14 lines (12 loc) • 397 B
text/typescript
import type { HybridObject } from './HybridObject'
/**
* Represents a boxed {@linkcode HybridObject} that can later be unboxed again.
* This is implemented as a `jsi::HostObject`.
*/
export interface BoxedHybridObject<T extends HybridObject> {
/**
* Unboxes the {@linkcode HybridObject}.
* This can be called from a different Runtime than the one it was boxed in.
*/
unbox(): T
}