diff options
author | 2021-01-02 00:16:23 -0600 | |
---|---|---|
committer | 2021-01-02 00:16:23 -0600 | |
commit | 334f38f0f12ce88a73e61478ded54693146f6c04 (patch) | |
tree | a2a12b7816a3d70fb8f0afeaa082da7281f76173 /source/features/use-first-commit-message-for-new-prs.tsx | |
parent | 23f05c1abff354f49175eecb14f0b08fbe5c22e8 (diff) | |
download | refined-github-334f38f0f12ce88a73e61478ded54693146f6c04.tar.gz refined-github-334f38f0f12ce88a73e61478ded54693146f6c04.tar.zst refined-github-334f38f0f12ce88a73e61478ded54693146f6c04.zip |
Meta: Infer better types in `querySelector` and `select-dom` (#3831)
Diffstat (limited to 'source/features/use-first-commit-message-for-new-prs.tsx')
-rw-r--r-- | source/features/use-first-commit-message-for-new-prs.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/use-first-commit-message-for-new-prs.tsx b/source/features/use-first-commit-message-for-new-prs.tsx index ea04f0c5..372f35cc 100644 --- a/source/features/use-first-commit-message-for-new-prs.tsx +++ b/source/features/use-first-commit-message-for-new-prs.tsx @@ -15,11 +15,11 @@ async function init(): Promise<void | false> { const [prTitle, ...prMessage] = select('#commits_bucket [data-url$="compare/commit"] a[title]')!.title.split(/\n\n/); textFieldEdit.set( - select<HTMLInputElement>('.discussion-topic-header input')!, + select('.discussion-topic-header input')!, prTitle ); textFieldEdit.insert( - select<HTMLTextAreaElement>('#new_pull_request textArea[aria-label="Comment body"]')!, + select('#new_pull_request textarea[aria-label="Comment body"]')!, prMessage.join('\n\n') ); } |