Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can TypedAction be exported from @ngrx/store? #4136

Closed
2 tasks
trevorade opened this issue Nov 17, 2023 · 1 comment · Fixed by #4318
Closed
2 tasks

Can TypedAction be exported from @ngrx/store? #4136

trevorade opened this issue Nov 17, 2023 · 1 comment · Fixed by #4318

Comments

@trevorade
Copy link

trevorade commented Nov 17, 2023

Which @ngrx/* package(s) are relevant/related to the feature request?

store

Information

@ngrx/store exports Action but not TypedAction from:

export declare interface TypedAction<T extends string> extends Action {

There is no documentation why TypedAction should be internal only.

There are several projects that import it by reaching into the source file:

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No
@trevorade
Copy link
Author

Alternatively, TypedAction could be deleted in favor of:

export interface Action<T extends string = string> {
  readonly type: T;
}

NathanLaing pushed a commit to NathanLaing/platform that referenced this issue Dec 15, 2023
Export TypedAction from Store

Closes ngrx#4136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant