Skip to content
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

Upgrade TypeScript to 4.7 #21

Merged
merged 2 commits into from
Aug 18, 2022
Merged

Upgrade TypeScript to 4.7 #21

merged 2 commits into from
Aug 18, 2022

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented Aug 18, 2022

Bump TypeScript and fix compile errors. Specifically, an error that's
caught is now typed as unknown, so accessing message on that error
object won't work anymore. This is fixed using a type guard.

Also bump typedoc to fix peer dependency warnings.

Bump TypeScript and fix compile errors. Specifically, an error that's
caught is now typed as `unknown`, so accessing `message` on that error
object won't work anymore. This is fixed using a type guard.

Also bump `typedoc` to fix peer dependency warnings.
@mcmire mcmire requested a review from a team as a code owner August 18, 2022 04:16
@mcmire mcmire mentioned this pull request Aug 18, 2022
Mrtenz
Mrtenz previously approved these changes Aug 18, 2022
"typedoc": "^0.22.15",
"typescript": "^4.2.4"
"typedoc": "^0.23.10",
"typescript": "~4.7.4"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ~ instead of ˆ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeScript doesn't follow SemVer; minor changes are breaking

Gudahtt
Gudahtt previously approved these changes Aug 18, 2022
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

* @param error - The object to check.
* @returns True or false, depending on the result.
*/
function isErrorWithMessage(error: unknown): error is { message: string } {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I guess it wants a unit test for this

@mcmire mcmire dismissed stale reviews from Gudahtt and Mrtenz via 06bedd6 August 18, 2022 18:26
@mcmire
Copy link
Contributor Author

mcmire commented Aug 18, 2022

Unit tests added ☝🏻

@mcmire mcmire merged commit 05cf406 into main Aug 18, 2022
@mcmire mcmire deleted the bump-typescript branch August 18, 2022 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants