-
Notifications
You must be signed in to change notification settings - Fork 3.8k
refactor(blocks): Migrate blocks/procedures.js to TypeScript
#7192
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
refactor(blocks): Migrate blocks/procedures.js to TypeScript
#7192
Conversation
| const quarkId: string = this.quarkIds_[i]; // TODO(#6920) | ||
| if (quarkId in this.quarkConnections_) { | ||
| const connection = this.quarkConnections_[quarkId]; | ||
| // TODO(#6920): investigate claimed circular initialisers. |
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.
What does "circular intialisers" refer to?
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.
From #6920:
setProcedureParameters_unexpectedly required declarations of the types of thequarkIdandconnectionlocal variables avoid "implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer" errors. Since the definitions do not appear to be circular (thoughconnectionis initialised based onquarkId) this smells and probably warrants further investigation.
| // Hack: override showEditor to do just a little bit more work. | ||
| // We don't have a good place to hook into the start of a text edit. | ||
| field.oldShowEditorFn_ = field.showEditor_; | ||
| field.oldShowEditorFn_ = (field as AnyDuringMigration).showEditor_; |
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.
Maybe add a TODO comment pointing at #6920 for this?
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.
(Replaces an earlier commit that inadvertently introduced a syntax error.)
2ebe4a0 to
46bbd87
Compare
The basics
npm run formatandnpm run lintThe details
Resolves
Part of #6828.