Skip to content

Commit

Permalink
Remove fromPartialX for proto2
Browse files Browse the repository at this point in the history
  • Loading branch information
tresabhi committed Oct 5, 2024
1 parent dbfe8c0 commit 096c4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export function generateFile(ctx: Context, fileDesc: FileDescriptorProto): [stri
staticMembers.push(generateToJson(ctx, fullName, fullTypeName, message));
}
}
if (options.outputPartialMethods) {
if (options.outputPartialMethods && ctx.currentFile.isProto3Syntax) {
staticMembers.push(generateFromPartial(ctx, fullName, message));
}

Expand Down

0 comments on commit 096c4b8

Please sign in to comment.