diff --git a/modules/router-store/spec/types/router_selectors.types.spec.ts b/modules/router-store/spec/types/router_selectors.types.spec.ts index 59d5ee854d..b922d9694e 100644 --- a/modules/router-store/spec/types/router_selectors.types.spec.ts +++ b/modules/router-store/spec/types/router_selectors.types.spec.ts @@ -53,7 +53,7 @@ describe('getRouterSelectors', () => { ); }); - it('selectQueryParam should return string', () => { + it('selectQueryParam should return string or string[]', () => { expectSnippet(` export const selectIdFromRoute = selectQueryParam('id') export const selector = createSelector( @@ -62,7 +62,7 @@ describe('getRouterSelectors', () => { ); `).toInfer( 'selector', - 'MemoizedSelector string>' + 'MemoizedSelector string | string[]>' ); }); diff --git a/modules/router-store/src/models.ts b/modules/router-store/src/models.ts index 13701934de..7b9f52969e 100644 --- a/modules/router-store/src/models.ts +++ b/modules/router-store/src/models.ts @@ -5,7 +5,9 @@ export type RouterStateSelectors = { selectCurrentRoute: MemoizedSelector; selectFragment: MemoizedSelector; selectQueryParams: MemoizedSelector; - selectQueryParam: (param: string) => MemoizedSelector; + selectQueryParam: ( + param: string + ) => MemoizedSelector; selectRouteParams: MemoizedSelector; selectRouteParam: (param: string) => MemoizedSelector; selectRouteData: MemoizedSelector;