Skip to content

Commit

Permalink
fix types in linkingConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Jan 26, 2024
1 parent e7d0a0b commit 3abdd8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/Navigation/linkingConfig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import getAdaptedStateFromPath from './getAdaptedStateFromPath';
const linkingConfig: LinkingOptions<RootStackParamList> = {
getStateFromPath: (...args) => {
const {adaptedState} = getAdaptedStateFromPath(...args);

// ResultState | undefined is the type this function expect.
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return adaptedState;
},
getPathFromState: customGetPathFromState,
Expand Down

0 comments on commit 3abdd8b

Please sign in to comment.