Skip to content

Commit

Permalink
refactor(react-native): avoid optional properties in turbo module spec
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Nov 26, 2024
1 parent 8aa66d1 commit 8fa051e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/platforms/react-native/lib/NativeBugsnagPerformance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { TurboModuleRegistry } from 'react-native'

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
export type DeviceInfo = {
arch?: string
model?: string
versionCode?: string // Android only
bundleVersion?: string // iOS only
bundleIdentifier?: string
arch: string | null
model: string | null
versionCode: string | null // Android only
bundleVersion: string | null // iOS only
bundleIdentifier: string | null
}

export interface Spec extends TurboModule {
Expand Down

0 comments on commit 8fa051e

Please sign in to comment.