You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `true` will generate a union type for `undefined` properties like: `{ id?: string | undefined }` instead of `{ id?: string }`
67
+
* @default false
68
68
*/
69
69
unionUndefined?: boolean;
70
70
/**
71
-
* defaults to false
72
71
* `true` will result in all generated endpoints having `providesTags`/`invalidatesTags` declarations for the `tags` of their respective operation definition
72
+
* @default false
73
73
* @see https://redux-toolkit.js.org/rtk-query/usage/code-generation for more information
74
74
*/
75
75
tag?: boolean;
76
76
/**
77
-
* defaults to false
78
77
* `true` will add `encodeURIComponent` to the generated path parameters
78
+
* @default false
79
79
*/
80
80
encodePathParams?: boolean;
81
81
/**
82
-
* defaults to false
83
82
* `true` will add `encodeURIComponent` to the generated query parameters
83
+
* @default false
84
84
*/
85
85
encodeQueryParams?: boolean;
86
86
/**
87
-
* defaults to false
88
87
* `true` will "flatten" the arg so that you can do things like `useGetEntityById(1)` instead of `useGetEntityById({ entityId: 1 })`
88
+
* @default false
89
89
*/
90
90
flattenArg?: boolean;
91
91
/**
92
-
* default to false
93
92
* If set to `true`, the default response type will be included in the generated code for all endpoints.
0 commit comments