stu
stu
TtRPC
Created by stu on 12/2/2024 in #❓-help
procedure output is "any"
I also got this error inside Serialize
Generic type 'AsyncIterable<T>' requires 1 type argument(s).ts(2314)
Generic type 'AsyncIterable<T>' requires 1 type argument(s).ts(2314)
27 replies
TtRPC
Created by stu on 12/2/2024 in #❓-help
procedure output is "any"
i guess something to do with ts Serialize i try Serialize<{ a: number }> got any
27 replies
TtRPC
Created by stu on 12/2/2024 in #❓-help
procedure output is "any"
yes, i read that article before, and I'm still getting "any" tsconfig.json
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
package.json
...
"dependencies": {
...
"@trpc/client": "11.0.0-rc.648",
"@trpc/server": "11.0.0-rc.648",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/jsonwebtoken": "^9.0.7",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "15.0.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5.6.3"
}
}
...
"dependencies": {
...
"@trpc/client": "11.0.0-rc.648",
"@trpc/server": "11.0.0-rc.648",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/jsonwebtoken": "^9.0.7",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "15.0.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5.6.3"
}
}
27 replies
TtRPC
Created by stu on 12/2/2024 in #❓-help
procedure output is "any"
i guess this is a bug?
27 replies