Skip to content

Commit 08aa3b4

Browse files
robertherberclaude
andcommitted
Spec: getActivityById returns ActivityProxy | undefined
nitrogen 0.37 maps `| null` to a variant with NullType, which the Swift implementation (-> HybridActivityProxySpec?) no longer conformed to. Optional keeps the same JS behaviour (undefined when not found). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent e75df55 commit 08aa3b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/react-native-activity-kit/src/specs/ActivityKitModule.nitro.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ export interface ActivityKitModule extends HybridObject<{ ios: 'swift' }> {
4343
state: AnyMap,
4444
options?: StartActivityOptions,
4545
): ActivityProxy
46-
getActivityById(activityId: string): ActivityProxy | null | undefined
46+
getActivityById(activityId: string): ActivityProxy | undefined
4747
getAllActivities(): ActivityProxy[]
4848
}

0 commit comments

Comments
 (0)