-
Notifications
You must be signed in to change notification settings - Fork 11.9k
build: update to TypeScript 5.9 beta #30740
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,11 +38,17 @@ export function subscribeToWorkflow( | |
); | ||
break; | ||
case 'update': | ||
logs.push(`${colors.cyan('UPDATE')} ${eventPath} (${event.content.length} bytes)`); | ||
logs.push( | ||
// TODO: `as unknown` was necessary during TS 5.9 update. Figure out a long-term solution. | ||
`${colors.cyan('UPDATE')} ${eventPath} (${(event.content as unknown as Buffer).length} bytes)`, | ||
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. This does not seem ideal from a type safety perspective. 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. So as far as I could tell, the types didn't really change but TS is being better at enforcing them. I did start to update the types, but it ended up spanning a ton of files so decided to keep the change simple for now. 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. Ok. makes sense. 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. Done, I've added TODOs on all those |
||
); | ||
files.add(eventPath); | ||
break; | ||
case 'create': | ||
logs.push(`${colors.green('CREATE')} ${eventPath} (${event.content.length} bytes)`); | ||
logs.push( | ||
// TODO: `as unknown` was necessary during TS 5.9 update. Figure out a long-term solution. | ||
`${colors.green('CREATE')} ${eventPath} (${(event.content as unknown as Buffer).length} bytes)`, | ||
); | ||
files.add(eventPath); | ||
break; | ||
case 'delete': | ||
|
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.
I had to change this test, because in the latest version Angular is a bit more permissive about parsing unsupported blocks.