Skip to content

Commit

Permalink
fix(app): Update getLaunchUrl return type as can be undefined (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored and elylucas committed Mar 10, 2021
1 parent f625bd2 commit cdc446b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Gets the current app state.
### getLaunchUrl()

```typescript
getLaunchUrl() => Promise<AppLaunchUrl>
getLaunchUrl() => Promise<AppLaunchUrl | undefined>
```

Get the URL the app was launched with, if any.
Expand Down
2 changes: 1 addition & 1 deletion app/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export interface AppPlugin {
*
* @since 1.0.0
*/
getLaunchUrl(): Promise<AppLaunchUrl>;
getLaunchUrl(): Promise<AppLaunchUrl | undefined>;

/**
* Listen for changes in the App's active state (whether the app is in the foreground or background)
Expand Down

0 comments on commit cdc446b

Please sign in to comment.