Skip to content

Commit

Permalink
Fix Edition type modification for the edition property of DescFile (#626
Browse files Browse the repository at this point in the history
)
  • Loading branch information
timostamm authored Nov 21, 2023
1 parent 8a23052 commit 1f3faa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/protobuf/src/create-descriptor-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ function parseFileSyntax(
syntax: string | undefined,
edition: Edition | undefined,
) {
let e: Omit<
let e: Exclude<
Edition,
| Edition.EDITION_1_TEST_ONLY
| Edition.EDITION_2_TEST_ONLY
Expand Down
2 changes: 1 addition & 1 deletion packages/protobuf/src/descriptor-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export interface DescFile {
* The edition of the protobuf file. Will be EDITION_PROTO2 for syntax="proto2",
* EDITION_PROTO3 for syntax="proto3";
*/
readonly edition: Omit<
readonly edition: Exclude<
Edition,
| Edition.EDITION_1_TEST_ONLY
| Edition.EDITION_2_TEST_ONLY
Expand Down

0 comments on commit 1f3faa6

Please sign in to comment.