Skip to content

Commit 0ae9561

Browse files
committed
fix: spellcheck
1 parent 1000db1 commit 0ae9561

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/libs/Navigation/AppNavigator/routerExtensions/addRootHistoryRouterExtension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function addRootHistoryRouterExtension<RouterOptions extends PlatformStackRouter
4444
return stateWithInitialHistory;
4545
};
4646

47-
// Centralises the `PartialState | FullState` cast to `getRehydratedState`'s input shape.
47+
// Centralizes the `PartialState | FullState` cast to `getRehydratedState`'s input shape.
4848
function rehydrate(newState: PartialState<RootHistoryState> | RootHistoryState, configOptions: RouterConfigOptions) {
4949
return getRehydratedState(newState as PartialState<RootHistoryState>, configOptions);
5050
}

src/libs/Navigation/AppNavigator/routerExtensions/addRootHistoryRouterExtensionUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function isRightModalNavigatorRouteName(name: string | undefined): boolean {
3131
return name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR;
3232
}
3333

34-
/** Centralises the cast from PlatformStackNavigationState's `unknown[]` history slot to our typed array. */
34+
/** Centralizes the cast from PlatformStackNavigationState's `unknown[]` history slot to our typed array. */
3535
function asCustomHistory(history: unknown[] | undefined): CustomHistoryEntry[] | undefined {
3636
return history as CustomHistoryEntry[] | undefined;
3737
}

tests/unit/Navigation/createRootStackNavigator/withSanitizedDeepLinkParams.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('withSanitizedDeepLinkParams', () => {
4444
});
4545

4646
it('PRESERVES `params` as-is when `params.screen` is absent, even if other "chain-like" keys are present', () => {
47-
// False-positive defence: legitimate user-set `path`, `initial`, etc. on a route
47+
// False-positive defense: legitimate user-set `path`, `initial`, etc. on a route
4848
// that was NOT created by deep-link hydration must survive untouched.
4949
const route = {
5050
key: 'k-1',

0 commit comments

Comments
 (0)