From 00676ba8dceabb723397614dab740c668aa30d6e Mon Sep 17 00:00:00 2001 From: Marc Redemske Date: Thu, 12 Jul 2018 12:34:29 +0200 Subject: [PATCH] fix: typing for 'selectById' property See: ngrx/platform#1156 --- modules/entity/src/models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/entity/src/models.ts b/modules/entity/src/models.ts index a389e5069c..1b57835d5f 100644 --- a/modules/entity/src/models.ts +++ b/modules/entity/src/models.ts @@ -73,7 +73,7 @@ export type EntitySelectors = { selectEntities: (state: V) => Dictionary; selectAll: (state: V) => T[]; selectTotal: (state: V) => number; - selectById: (state: V) => T; + selectById: (id: string | number) => (state: V) => T; }; export interface EntityAdapter extends EntityStateAdapter {