@@ -2,10 +2,6 @@ import { TurboModuleRegistry, type TurboModule } from 'react-native';
22import type { StackFrame } from 'stacktrace-parser' ;
33import type { CodegenTypes } from 'react-native' ;
44
5- type EventEmitter < T > = CodegenTypes . EventEmitter < T > ;
6- type Int32 = CodegenTypes . Int32 ;
7- type Double = CodegenTypes . Double ;
8-
95export interface Spec extends TurboModule {
106 encryptedStorageSetItem ( key : string , value : string ) : Promise < void > ;
117 encryptedStorageGetItem ( key : string ) : Promise < string | null > ;
@@ -48,10 +44,10 @@ export interface Spec extends TurboModule {
4844 errorHandlerHandle ( message : string , stackTrace : StackFrame [ ] ) : void ;
4945
5046 navigationModeIsNavigationBarActive ( ) : boolean ;
51- navigationModeGetNavigationBarHeight ( ) : Double ;
47+ navigationModeGetNavigationBarHeight ( ) : CodegenTypes . Double ;
5248
53- readonly onReloadWithState : EventEmitter < void > ;
54- readonly onDownloadProgress : EventEmitter < DownloadProgress > ;
49+ readonly onReloadWithState : CodegenTypes . EventEmitter < void > ;
50+ readonly onDownloadProgress : CodegenTypes . EventEmitter < DownloadProgress > ;
5551}
5652
5753export default TurboModuleRegistry . getEnforcing < Spec > ( 'MendixNative' ) ;
@@ -97,12 +93,12 @@ type Configuration = {
9793 * @deprecated
9894 */
9995 CODE_PUSH_KEY ?: string ;
100- NATIVE_BINARY_VERSION ?: Int32 ;
96+ NATIVE_BINARY_VERSION ?: CodegenTypes . Int32 ;
10197 APP_SESSION_ID ?: string ;
10298} ;
10399
104100type DownloadConfig = {
105- connectionTimeout ?: Int32 ;
101+ connectionTimeout ?: CodegenTypes . Int32 ;
106102 mimeType ?: string ;
107103} ;
108104
@@ -121,8 +117,8 @@ type OtaDownloadResponse = {
121117} ;
122118
123119type DownloadProgress = {
124- receivedBytes : Double ;
125- totalBytes : Double ;
120+ receivedBytes : CodegenTypes . Double ;
121+ totalBytes : CodegenTypes . Double ;
126122} ;
127123
128124export type {
0 commit comments