-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HUD] Upgrade typescript 4.6.3 -> 5.7.2 (#6100)
This results in a lot of "union too complex to represent" errors, which I solved by separating the context, which was previously typed `Context<webhook type>` to just `Context`, and the payload (if it is used), which is now typed `Context<webhook type>["payload"]` so functions taking in `context: Context<"pull_request">` now take in `context: Context, payload: Context<"pull_request">["payload"]` and anything that previously used `context.payload` now just uses `payload` Some disccusion on this can be found here: probot/probot#1966 https://togithub.com/ubiquity-os/ubiquity-os-kernel/issues/31 https://togithub.com/probot/probot/issues/1968 I'm not sure why the import order formatter changed it's mind about what order things should be in, but it seems to still have opinions which I think is the main thing to check
- Loading branch information
Showing
8 changed files
with
54 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,7 @@ | |
"prettier": "2.6.2", | ||
"prettier-plugin-organize-imports": "^3.2.4", | ||
"ts-jest": "^29.2.5", | ||
"typescript": "4.6.3" | ||
"typescript": "^5.7.2" | ||
}, | ||
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters