-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint #6326
Conversation
@@ -71,7 +71,7 @@ function linkBestComment(bestComment: HTMLElement): void { | |||
} | |||
|
|||
const text = select('.comment-body', bestComment)!.textContent!.slice(0, 100); | |||
const {hash} = select<HTMLAnchorElement>('a.js-timestamp', bestComment)!; // TODO: Drop generic once TypeScript sorts it out, it shouldn't be needed | |||
const {hash} = select('a.js-timestamp', bestComment)!; |
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 knew I was right!
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.
As always!
{forEach: linkify}, | ||
); | ||
} | ||
|
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.
Change tested, it works
append: createReviewLink, | ||
}); | ||
} | ||
|
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.
Change tested, it works
): NodeListOf<ParseSelector<S, HTMLElement>>; | ||
} | ||
|
||
interface Element { | ||
closest<S extends string>(selector: S): ParseSelector<S, HTMLElement> | null; | ||
closest<S extends string>(selector: S | readonly S[]): ParseSelector<S, HTMLElement> | null; | ||
matches(selectors: string | readonly string[]): boolean; |
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.
readonly
allows passing arrays like ['input', 'textarea'] as const
, which are tighter than string[]
@@ -42,7 +42,7 @@ | |||
}, | |||
"dependencies": { | |||
"@cheap-glitch/mi-cron": "^1.0.1", | |||
"@primer/octicons-react": "^17.5.0", | |||
"@primer/octicons-react": "^17.11.1", |
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 undo this because dom-chef started failing 馃ゲ
馃槑