File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -906,7 +906,7 @@ const generateQueryHook = async (
906
906
907
907
const queryKeyFn = `export const ${ queryKeyFnName } = (${ queryKeyProps } ) => [\`${ route } \`${
908
908
queryParams ? ', ...(params ? [params]: [])' : ''
909
- } ${ body . implementation ? `, ${ body . implementation } ` : '' } ];`;
909
+ } ${ body . implementation ? `, ${ body . implementation } ` : '' } ] as const ;`;
910
910
911
911
const implementation = `${ ! queryKeyMutator ? queryKeyFn : '' }
912
912
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ const generateSwrHook = (
323
323
324
324
return `export const ${ swrKeyFnName } = (${ queryKeyProps } ) => [\`${ route } \`${
325
325
queryParams ? ', ...(params ? [params]: [])' : ''
326
- } ${ body . implementation ? `, ${ body . implementation } ` : '' } ];
326
+ } ${ body . implementation ? `, ${ body . implementation } ` : '' } ] as const ;
327
327
328
328
${ generateSwrImplementation ( {
329
329
operationName,
You can’t perform that action at this time.
1 commit comments
vercel[bot] commentedon Mar 27, 2023
Successfully deployed to the following URLs:
orval – ./
orval-git-master-anymaniax.vercel.app
orval-anymaniax.vercel.app
orval.dev
orval.vercel.app
www.orval.dev