File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ describe('createFeature()', () => {
244244 ` ) . toSucceed ( ) ;
245245 } ) ;
246246
247- it ( 'should allow use with untyped store.select' , ( ) => {
247+ it ( 'should not allow use with untyped store.select' , ( ) => {
248248 expectSnippet ( `
249249 const { selectCounterState, selectCount } = createFeature<{ counter: { count: number } }>({
250250 name: 'counter',
@@ -255,7 +255,7 @@ describe('createFeature()', () => {
255255 const counterState$ = store.select(selectCounterState);
256256 const count$ = store.select(selectCount);
257257 ` ) . toFail (
258- / T y p e ' o b j e c t ' i s n o t a s s i g n a b l e t o t y p e ' { c o u n t e r : { c o u n t : n u m b e r ; } ; } ' /
258+ / T y p e ' R e c o r d < s t r i n g , u n k n o w n > ' i s n o t a s s i g n a b l e t o t y p e ' { c o u n t e r : { c o u n t : n u m b e r ; } ; } /
259259 ) ;
260260 } ) ;
261261
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { ReducerManager } from './reducer_manager';
1010import { StateObservable } from './state' ;
1111
1212@Injectable ( )
13- export class Store < T = object >
13+ export class Store < T = Record < string , unknown > >
1414 extends Observable < T >
1515 implements Observer < Action >
1616{
You can’t perform that action at this time.
0 commit comments