Skip to content

Commit

Permalink
Revert "Revert "feat(store): expose ActionContext and ActionStatus (
Browse files Browse the repository at this point in the history
#1766)""

This reverts commit 36f415f.
  • Loading branch information
markwhitfeld committed Mar 29, 2023
1 parent 0397eab commit 241befc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/store/src/actions-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export class InternalActions extends OrderedSubject<ActionContext> implements On
* You can listen to this in services to react without stores.
*/
@Injectable()
export class Actions extends Observable<any> {
// This has to be `Observable<ActionContext>` in the v4. Because `InternalActions`
// is a `Subject<ActionContext>`. Leave it as `any` to avoid breaking changes
export class Actions extends Observable<ActionContext> {
constructor(
internalActions$: InternalActions,
internalExecutionStrategy: InternalNgxsExecutionStrategy
Expand Down
2 changes: 1 addition & 1 deletion packages/store/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export { Store } from './store';
export { State } from './decorators/state';
export { Select } from './decorators/select/select';
export { SelectorOptions } from './decorators/selector-options';
export { Actions } from './actions-stream';
export { Actions, ActionContext, ActionStatus } from './actions-stream';

// TODO: v4 - We need to come up with an alternative api to exposing this metadata
// because it is currently used by the following (after a github search):
Expand Down

0 comments on commit 241befc

Please sign in to comment.