File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
packages/openapi-ts/src/plugins/@hey-api/sdk Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ const generateClassSdk = ({
205
205
types : isNuxtClient
206
206
? [
207
207
{
208
- // default: tsc.ots.string('$fetch'),
208
+ default : tsc . ots . string ( '$fetch' ) ,
209
209
extends : tsc . typeNode ( 'Composable' ) ,
210
210
name : nuxtTypeComposable ,
211
211
} ,
@@ -379,7 +379,7 @@ const generateFlatSdk = ({
379
379
types : isNuxtClient
380
380
? [
381
381
{
382
- // default: tsc.ots.string('$fetch'),
382
+ default : tsc . ots . string ( '$fetch' ) ,
383
383
extends : tsc . typeNode ( 'Composable' ) ,
384
384
name : nuxtTypeComposable ,
385
385
} ,
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export const createTypeOptions = ({
86
86
? [
87
87
tsc . typeParameterDeclaration ( {
88
88
constraint : tsc . typeReferenceNode ( { typeName : 'Composable' } ) ,
89
+ defaultType : tsc . typeNode ( "'$fetch'" ) ,
89
90
name : 'TComposable' ,
90
91
} ) ,
91
92
tsc . typeParameterDeclaration ( {
You can’t perform that action at this time.
0 commit comments