Skip to main content

Type Alias: NamedDataServiceMethods<E, F, Collection>

NamedDataServiceMethods<E, F, Collection>: { [K in Collection as `update${Capitalize<K>}Filter`]: (filter: F) => void } & { [K in Collection as `updateSelected${Capitalize<K>}Entities`]: (id: EntityId, selected: boolean) => void } & { [K in Collection as `load${Capitalize<K>}Entities`]: () => Promise<void> } & { [K in Collection as `setCurrent${Capitalize<K>}`]: (entity: E) => void } & { [K in Collection as `load${Capitalize<K>}ById`]: (id: EntityId) => Promise<void> } & { [K in Collection as `create${Capitalize<K>}`]: (entity: E) => Promise<void> } & { [K in Collection as `update${Capitalize<K>}`]: (entity: E) => Promise<void> } & { [K in Collection as `updateAll${Capitalize<K>}`]: (entity: E[]) => Promise<void> } & { [K in Collection as `delete${Capitalize<K>}`]: (entity: E) => Promise<void> }

Defined in: libs/ngrx-toolkit/src/lib/with-data-service.ts:151

Type Parameters

E extends Entity

F extends Filter

Collection extends string