Is the makeApi autocompletion expected to not work properly?
lucas-santosP opened this issue · comments
Lucas S. Policarpo commented
As shown in the video above. Using makeApi
when I set the endpoint response
the autocompletion is lost, and without it the autocompletion works fine.
infer.mp4
With makeEndpoint
I did not have this problem.
I'm using zodios 10.9.0
and my tsconfig:
{
"compilerOptions": {
"target": "es5",
"allowSyntheticDefaultImports": true,
"lib": ["dom", "dom.iterable", "esnext", "ES2021.String"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"baseUrl": ".",
"paths": {
"@/*": ["*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
ecyrbe commented
Yes, it's something typescript is bad at with tuples and did not find any solution. So if you need better autocompletion, use builder helper that allows to build a tuple based on multiple individual objects.