-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fromPartial method returns an error,'Argument type {} is not assignable to parameter type I' #838
Comments
Hi @zsp419 , that code has not caused issues in the past; out of curiosity, what version of TypeScript are you using? I'm wondering if it's a TS 5.x behavior. |
what ide do you use,I had problems with IntelliJ IDEA before, but vscode is fine |
Fwiw I've bumped ts-proto's integration tests to TypeScript 5.1 and am not getting any errors from the We have a Granted we could always add a |
Same error on ts 5.1.6 My tsconfig is normal: {
"compilerOptions": {
"target": "es6",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
} |
This should fix #838 which I believe only happens in complicated schemas.
I pushed a fix that adds an |
🎉 This issue has been resolved in version 1.156.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
With the tool's automatically generated code, the fromPartial method returns an error, as shown below:
here is my protofile code:
please help me!
The text was updated successfully, but these errors were encountered: