Skip to content

Commit 8285b38

Browse files
Avoid optional properties in Turbo Module spec (#534)
1 parent bfb189a commit 8285b38

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/platforms/react-native/lib/NativeBugsnagPerformance.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { TurboModuleRegistry } from 'react-native'
33

44
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
55
export type DeviceInfo = {
6-
arch?: string
7-
model?: string
8-
versionCode?: string // Android only
9-
bundleVersion?: string // iOS only
10-
bundleIdentifier?: string
6+
arch: string | undefined
7+
model: string | undefined
8+
versionCode: string | undefined // Android only
9+
bundleVersion: string | undefined // iOS only
10+
bundleIdentifier: string | undefined
1111
}
1212

1313
export interface Spec extends TurboModule {

0 commit comments

Comments
 (0)