Skip to main content

Function: withDataService()

Call Signature

withDataService<E, F, Collection>(options): SignalStoreFeature<EmptyFeatureResult & object, { methods: NamedDataServiceMethods<E, F, Collection>; props: NamedDataServiceComputed<E, Collection>; state: NamedDataServiceState<E, F, Collection>; }>

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

Type Parameters

E extends Entity

F extends Filter

Collection extends string

Parameters

options

collection

Collection

dataServiceType

ProviderToken<DataService<E, F>>

filter

F

Returns

SignalStoreFeature<EmptyFeatureResult & object, { methods: NamedDataServiceMethods<E, F, Collection>; props: NamedDataServiceComputed<E, Collection>; state: NamedDataServiceState<E, F, Collection>; }>

Call Signature

withDataService<E, F>(options): SignalStoreFeature<EmptyFeatureResult & object, { methods: DataServiceMethods<E, F>; props: DataServiceComputed<E>; state: DataServiceState<E, F>; }>

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

Type Parameters

E extends Entity

F extends Filter

Parameters

options

dataServiceType

ProviderToken<DataService<E, F>>

filter

F

Returns

SignalStoreFeature<EmptyFeatureResult & object, { methods: DataServiceMethods<E, F>; props: DataServiceComputed<E>; state: DataServiceState<E, F>; }>