Skip to content

Commit 7e06ea8

Browse files
committed
Improve JSDoc type specificity
1 parent 6c277ee commit 7e06ea8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/scripts/app-init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ const registerInPageContentScript = async () => {
193193
* is never called.
194194
* For MV2 builds, the listener is added in `background.js` instead.
195195
*
196-
* @param {object} details - Event details.
197-
* @param {string} details.reason - The reason that this event was dispatched.
196+
* @param {chrome.runtime.InstalledDetails} details - Event details.
198197
*/
199198
function onInstalledListener(details) {
200199
if (details.reason === 'install') {

app/scripts/background.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ if (!isManifestV3) {
149149
* is never called.
150150
* There is no `app-init` file on MV2 builds, so we add a listener here instead.
151151
*
152-
* @param {object} details - Event details.
153-
* @param {string} details.reason - The reason that this event was dispatched.
152+
* @param {import('webextension-polyfill').Runtime.OnInstalledDetailsType} details - Event details.
154153
*/
155154
const onInstalledListener = (details) => {
156155
if (details.reason === 'install') {

0 commit comments

Comments
 (0)