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

queryfeature.md

36 lines704 Bytes

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.