Repository navigation
WIP - Remove some package types from global - #1936
nickytonline wants to merge 3 commits into
Conversation
| const options = { | ||
| user: currentRepo.ownerName || '/', | ||
| repo: currentRepo.repoName || '/', | ||
| repository: currentRepo.repoName || '/', |
There was a problem hiding this comment.
Just need to sort out the signature for the fn parameter as the options are different.
ERROR in /Users/nickytonline/dev/refined-github/source/features/linkify-urls-in-code.tsx
[tsl] ERROR in /Users/nickytonline/dev/refined-github/source/features/linkify-urls-in-code.tsx(35,21)
TS2349: Cannot invoke an expression whose type lacks a call signature. Type '{ (string: string, options: TypeDomOptions): DocumentFragment; (string: string, options?: Options | undefined): string; } | { (string: string, options: TypeDomOptions): DocumentFragment; (string: string, options?: Options | undefined): string; }' has no compatible call signatures.| "linkify-issues": "^1.3.0", | ||
| "linkify-urls": "^2.2.0", | ||
| "linkify-issues": "^2.0.0", | ||
| "linkify-urls": "^3.1.0", |
There was a problem hiding this comment.
This can't be updated because Firefox doesn't support lookbehind.
There was a problem hiding this comment.
We should at least update the comment about using the bundled type defs when it's implemented in Firefox and link to the Firefox issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1225665
There was a problem hiding this comment.
Perhaps v3's types can be backported to v2 and you can publish v2.2.1
There was a problem hiding this comment.
Just checking if we'll add the types to v.2.2.1. If so, I can do this tonight. If not we can leave them in RGH globals.d.ts with the TODO pointing to this comment as @bfred-it mentions, #1962 (comment)
There was a problem hiding this comment.
Just checking if we'll add the types to v.2.2.1.
No, just leave them for now.
|
|
Nah. Too much trouble for it to be worth it. We can just wait it out. |
I want to remind you that some bugs on bugzilla are older than some RGH contributors |
|
|
There are some type todo’s that would be good to complete as well. Perhaps you can close this PR though, since the changes done so far need to be undone |
Relates to cleanup for #1735. See #1783 (comment)