Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

queryfeature.md

36 lines640 Bytes

1---
2id: queryFeature
3title: queryFeature
4---
5​
6# Function: queryFeature()
7​
8```ts
9function queryFeature<TFeatureKind>(kind, providers): QueryFeature<TFeatureKind>
10```
11​
12Helper function to create an object that represents a Query feature.
13​
14## Type Parameters
15​
16β€’ **TFeatureKind** _extends_ `"DeveloperTools"` \| `"PersistQueryClient"`
17​
18## Parameters
19​
20### kind
21​
22`TFeatureKind`
23​
24### providers
25​
26`Provider`[]
27​
28## Returns
29​
30[`QueryFeature`](../../interfaces/queryfeature.md)\<`TFeatureKind`\>
31​
32A Query feature.
33​
34## Defined in
35​
36[providers.ts:156](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L156)