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
TypeScript Cleanup - Bye, bye TODOs #1962
TypeScript Cleanup - Bye, bye TODOs #1962
Conversation
Instead of many tiny PRs let’s reuse this one for any TS-related changes this week |
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.
npm i intervalometer@latest tiny-version-compare@latest shorten-repo-url@latest
source/globals.d.ts
Outdated
|
||
export = compareVersions | ||
} | ||
|
||
// TODO: Move types to https://github.com/sindresorhus/linkify-urls repository. |
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.
This TODO should be updated to point to #1936 (comment)
This should be good to go. TODOs that remain have had comments updated. |
Any other TODOs across the extension? There are a few more type-related comments I think |
Ahh, yeah. True that. I had only globals.d.ts on the brain... 🙃 |
I'm surprised to see that the todos are actually already gone. The last one would be this: // TODO: type target asap and drop `as Element`
const observer = new MutationObserver(([{target}]) => {
if (!select.exists('.js-details-dialog-spinner', target as Element)) {
improveShortcutHelp(target as Element);
fixKeys(target as Element);
observer.disconnect();
}
}); Is it possible without adding |
I was working on the last todo last night. No success yet but basically the I'll take another stab at it tonight and report back. |
Are you trying to change the type of I think a shortcut would be to add |
17cc243
to
56353c9
Compare
Alright, a little lunchtime break/commit and I think this is good to go @bfred-it. |
Excellent! |
I guess the last step would be to also convert the |
Happy to convert it if you want. I've done it a bunch of times before. |
✌️ |
@bfred-it, just some more post #1735 TODO cleanup. I removed the tiny-version-compare types. The package needs to be bumped in the project, but just waiting for fregante/tiny-version-compare#7 to be merged before going ahead.