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

Update signal-state.ts #4291

Closed
wants to merge 1 commit into from
Closed

Update signal-state.ts #4291

wants to merge 1 commit into from

Conversation

RyannGalea
Copy link

Export type for usage.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Currently the type is not exported.

Closes #

What is the new behavior?

Exports the type for usage in app.

Does this PR introduce a breaking change?

[ ] Yes
[X ] No

Other information

Export type for usage.
Copy link

netlify bot commented Apr 8, 2024

Deploy Preview for ngrx-io canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 9516cb4
🔍 Latest deploy log https://app.netlify.com/sites/ngrx-io/deploys/66134c4a29f66a00089f5ff6

@@ -2,7 +2,7 @@ import { signal } from '@angular/core';
import { STATE_SIGNAL, StateSignal } from './state-signal';
import { DeepSignal, toDeepSignal } from './deep-signal';

type SignalState<State extends object> = DeepSignal<State> & StateSignal<State>;
export type SignalState<State extends object> = DeepSignal<State> & StateSignal<State>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you give a use case where you require this type?
We try to expose as little as possible to lower the surface of future breaking changes to types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants