From a940829a1223277a6f414903abbc0d4ed286d827 Mon Sep 17 00:00:00 2001 From: iw0 Date: Thu, 11 Apr 2024 10:47:22 +0200 Subject: [PATCH] types --- content_script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content_script.js b/content_script.js index 5fd1d16..b2acdea 100644 --- a/content_script.js +++ b/content_script.js @@ -315,7 +315,7 @@ const enterTitleAndActivateCountryDropdown = { expects: "mutation", /**@param {MutationRecord} mut */ match: mut => matchDropdown(mut, "test-name-titel", "open"), - /**@param {MutationCallback} mut */ + /**@param {MutationRecord} mut */ execute: mut => { ensureSettingsProp("addr__title", v => { const selectList = getDropdownList(mut); @@ -330,9 +330,11 @@ const enterTitleAndActivateCountryDropdown = { } } +/** @type Stage */ const enterCountry = { name: "enterCountry", expects: "mutation", + /** @param {MutationRecord} mut */ match: mut => matchDropdown(mut, "test-adresse-land", "open"), execute: () => { ensureSettingsProp("addr__country", v => { @@ -398,6 +400,7 @@ const continueToPayout = { execute: () => document.activeElement.dispatchEvent(_clickEv()), } +/** @type Stage */ const enterPaymentDetails = { name: "enterPaymentDetails", match: node => node.querySelector(".entschaedigung"),