fork of hey-api/openapi-ts because I need some additional things

fix(pinia-colada): restore query context propagation

+4 -1
+4 -1
packages/openapi-ts/src/plugins/@pinia/colada/queryOptions.ts
··· 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 75 multiLine: true, 74 76 obj: [ 75 77 { spread: optionsParamName }, 78 + { spread: fnOptions }, 76 79 { key: 'throwOnError', value: true }, 77 80 ], 78 81 }), ··· 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 },