nitro-codegen
Version:
The code-generator for react-native-nitro-modules.
37 lines (36 loc) • 1.28 kB
TypeScript
export interface HybridObjectName {
/**
* The raw name of the Hybrid Object (same as the TS interface name).
* @example "Image"
*/
T: string;
/**
* The debug-only description name of the Hybrid Object as it can be described in natively.
* @example "HybridImage"
*/
HybridT: string;
/**
* The name of the C++ class, Kotlin interface or Swift protocol that represents the
* specification (all of it's virtual properties and methods) of the Hybrid Object.
* @example "HybridImageSpec"
*/
HybridTSpec: string;
/**
* The name of the Swift class that bridges any types from
* {@linkcode HybridTSpec} over to C++.
* This includes a few type conversions or result/exception wrapping.
* @example "HybridImage_cxx"
*/
HybridTSpecCxx: string;
/**
* The name of the C++ class that actually bridges to the Java Hybrid Object.
* @example "JHybridImage"
*/
JHybridTSpec: string;
/**
* The name of the C++ class that extends the Hybrid Object and bridges over to the Swift C++ wrapper class.
* @example "HybridImageSwift"
*/
HybridTSpecSwift: string;
}
export declare function getHybridObjectName(hybridObjectName: string): HybridObjectName;