Type Alias: EntityResourceResult<Entity>
EntityResourceResult<
Entity>:object
Defined in: libs/ngrx-toolkit/src/lib/with-entity-resources.ts:200
Internal
Type Parameters
• Entity
Type declaration
methods
methods:
ResourceResult<Entity>["methods"]
props
props:
ResourceResult<Entity>["props"] &EntityProps<Entity>
state
state:
ResourceResult<Entity>["state"] &EntityState<Entity>
Description
Type composition notes: we intentionally do not duplicate or re-declare
types that already exist in @ngrx/signals/entities or in this library's
with-resource feature. Instead, we compose the resulting API via
intersections of those public contracts.
Rationale:
- Keeps our types in sync with upstream sources and avoids drift.
- Reduces maintenance overhead and duplication.
- Ensures consumers benefit automatically from upstream typing fixes.
Concretely:
- For unnamed resources we return
ResourceResult<Entity>intersected withEntityState<Entity>andEntityProps<Entity>. - For named resources we return
NamedResourceResult<T>intersected withNamedEntityState<E, Name>andNamedEntityProps<E, Name>for each entry.