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: lib/with-data-service.ts:197

Type Parameters​

E​

E extends Entity

F​

F extends Filter

Collection​

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: lib/with-data-service.ts:215

Type Parameters​

E​

E extends Entity

F​

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>; }>