Open History to see the last commit
1---
2id: queryFeature
3title: queryFeature
4---
5β
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7β
8# Function: queryFeature()
9β
10```ts
11function queryFeature<TFeatureKind>(kind, providers): QueryFeature<TFeatureKind>
12```
13β
14Defined in: [providers.ts:146](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L146)
15β
16Helper function to create an object that represents a Query feature.
17β
18## Type Parameters
19β
20β’ **TFeatureKind** _extends_ `"Devtools"` \| `"PersistQueryClient"`
21β
22## Parameters
23β
24### kind
25β
26`TFeatureKind`
27β
28### providers
29β
30`Provider`[]
31β
32## Returns
33β
34[`QueryFeature`](../../interfaces/queryfeature.md)\<`TFeatureKind`\>
35β
36A Query feature.