File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/openapi-ts/src/plugins/@pinia/colada Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ import type { PluginState } from './state';
14
14
import type { PiniaColadaPlugin } from './types' ;
15
15
import { useTypeData } from './useType' ;
16
16
import { getPublicTypeData } from './utils' ;
17
+
17
18
const optionsParamName = 'options' ;
19
+ const fnOptions = 'context' ;
18
20
19
21
export const createQueryOptions = ( {
20
22
operation,
@@ -73,6 +75,7 @@ export const createQueryOptions = ({
73
75
multiLine : true ,
74
76
obj : [
75
77
{ spread : optionsParamName } ,
78
+ { spread : fnOptions } ,
76
79
{ key : 'throwOnError' , value : true } ,
77
80
] ,
78
81
} ) ,
@@ -113,7 +116,7 @@ export const createQueryOptions = ({
113
116
value : tsc . arrowFunction ( {
114
117
async : true ,
115
118
multiLine : true ,
116
- parameters : [ ] ,
119
+ parameters : [ { name : fnOptions } ] ,
117
120
statements,
118
121
} ) ,
119
122
} ,
You can’t perform that action at this time.
0 commit comments