Skip to content

Commit e683a65

Browse files
committed
chore: update type references to use CodegenTypes in NativeMendixNative.ts
1 parent c7aa00c commit e683a65

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

src/specs/NativeMendixNative.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { TurboModuleRegistry, type TurboModule } from 'react-native';
22
import type { StackFrame } from 'stacktrace-parser';
33
import type { CodegenTypes } from 'react-native';
44

5-
type EventEmitter<T> = CodegenTypes.EventEmitter<T>;
6-
type Int32 = CodegenTypes.Int32;
7-
type Double = CodegenTypes.Double;
8-
95
export 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

5753
export 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

104100
type DownloadConfig = {
105-
connectionTimeout?: Int32;
101+
connectionTimeout?: CodegenTypes.Int32;
106102
mimeType?: string;
107103
};
108104

@@ -121,8 +117,8 @@ type OtaDownloadResponse = {
121117
};
122118

123119
type DownloadProgress = {
124-
receivedBytes: Double;
125-
totalBytes: Double;
120+
receivedBytes: CodegenTypes.Double;
121+
totalBytes: CodegenTypes.Double;
126122
};
127123

128124
export type {

0 commit comments

Comments
 (0)