Skip to content

@ngrx/signals: type representing a SignalStoreFeature #5185

Description

@rainerhahnekamp

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

signals

Information

Custom Signal Store features often expose state, props, and methods that are useful as input for other custom features. Today, that input type has to be duplicated manually with type<{ state; props; methods }>(), even though the producing feature already contains the canonical inferred output type.

Add a public SignalStoreFeatureType helper that extracts the output result type from a Signal Store feature factory.

Describe any alternatives/workarounds you're currently using

Typing it manually.

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

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions