-
Notifications
You must be signed in to change notification settings - Fork 171
V2: Bump supported version of TypeScript to 4.9.5 #805
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -671,15 +671,14 @@ describe("create()", () => { | |
| // @ts-expect-error expected type error | ||
| repeatedInt64JsStringField: [protoInt64.parse(6)], | ||
| either: { | ||
| // @ts-ignore -- required for older TS | ||
| case: "oneofInt64Field", | ||
| // @ts-ignore -- required for older TS | ||
| // @ts-expect-error expected type error | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In tests, we can replace some |
||
| value: 7, | ||
| }, | ||
| mapInt64Int64Field: { | ||
| // @ts-ignore -- required for older TS | ||
| // @ts-expect-error expected type error | ||
| "1": 8, | ||
| // @ts-ignore -- required for older TS | ||
| // @ts-expect-error expected type error | ||
| "2": 9, | ||
| }, | ||
| }); | ||
|
|
@@ -714,9 +713,8 @@ describe("create()", () => { | |
| [0xde, 0xad, 0xbe, 0xef], | ||
| ], | ||
| either: { | ||
| // @ts-ignore -- number array is still a type error | ||
| case: "oneofBytesField", | ||
| // @ts-ignore -- number array is still a type error | ||
| // @ts-expect-error -- number array is still a type error | ||
| value: [0xde, 0xad, 0xbe, 0xef], | ||
| }, | ||
| }); | ||
|
|
@@ -798,7 +796,7 @@ describe("create()", () => { | |
| describe("enum field", () => { | ||
| test("accepts proto3 enum value out of range", () => { | ||
| const msg = create(proto3_ts.Proto3MessageDesc, { | ||
| // @ts-ignore -- cannot use ts-expect-error, not an error in older TS | ||
| // @ts-ignore -- required for older TS | ||
| singularEnumField: 99, | ||
| }); | ||
| expect(msg.singularEnumField).toBe(99); | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can not use type-only specifiers in imports, a feature added by TS v4.5.