Skip to content

Commit 373f2ec

Browse files
Revert "refactor(store): use Record as Store generic (#3158)"
This reverts commit 605fd02.
1 parent a6fe92d commit 373f2ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/store/spec/types/feature_creator.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ describe('createFeature()', () => {
244244
`).toSucceed();
245245
});
246246

247-
it('should not allow use with untyped store.select', () => {
247+
it('should 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-
/Type 'Record<string, unknown>' is not assignable to type '{ counter: { count: number; }; }/
258+
/Type 'object' is not assignable to type '{ counter: { count: number; }; }'/
259259
);
260260
});
261261

modules/store/src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ReducerManager } from './reducer_manager';
1010
import { StateObservable } from './state';
1111

1212
@Injectable()
13-
export class Store<T = Record<string, unknown>>
13+
export class Store<T = object>
1414
extends Observable<T>
1515
implements Observer<Action>
1616
{

0 commit comments

Comments
 (0)