aboutsummaryrefslogtreecommitdiff
path: root/ext/js/accessibility
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/accessibility')
-rw-r--r--ext/js/accessibility/google-docs.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/js/accessibility/google-docs.js b/ext/js/accessibility/google-docs.js
index 27841b6d..4bc398ff 100644
--- a/ext/js/accessibility/google-docs.js
+++ b/ext/js/accessibility/google-docs.js
@@ -24,10 +24,11 @@
self.googleDocsAccessibilitySetup = true;
/**
- * @template [TReturn=unknown]
- * @param {string} action
- * @param {import('core').SerializableObject} params
- * @returns {Promise<TReturn>}
+ * @template {import('api').ApiNames} TAction
+ * @template {import('api').ApiParams<TAction>} TParams
+ * @param {TAction} action
+ * @param {TParams} params
+ * @returns {Promise<import('api').ApiReturn<TAction>>}
*/
const invokeApi = (action, params) => {
return new Promise((resolve, reject) => {
@@ -45,7 +46,7 @@
};
const optionsContext = {depth: 0, url: location.href};
- /** @type {import('api').OptionsGetResult} */
+ /** @type {import('api').ApiReturn<'optionsGet'>} */
let options;
try {
options = await invokeApi('optionsGet', {optionsContext});