@@ -133,7 +133,7 @@ const waitPromise = function*(promise) {
133133/**
134134 * isPromise: Determine if a value is Promise-like
135135 * @param {unknown } promise The value to check
136- * @returns {promise is PromiseLike } True if the value is Promise-like (has a .then())
136+ * @returns {boolean } True if the value is Promise-like (has a .then())
137137 */
138138
139139/**
@@ -457,7 +457,7 @@ runtimeFunctions.listGet = `const listGet = (list, idx) => {
457457
458458/**
459459 * Replace a value in a list.
460- * @param {import('../engine/variable') } list The list
460+ * @param {!Variable } list The list
461461 * @param {* } idx List index, Scratch style.
462462 * @param {* } value The new value.
463463 */
@@ -472,7 +472,7 @@ runtimeFunctions.listReplace = `const listReplace = (list, idx, value) => {
472472
473473/**
474474 * Insert a value in a list.
475- * @param {import('../engine/variable') } list The list.
475+ * @param {!Variable } list The list.
476476 * @param {* } idx The Scratch index in the list.
477477 * @param {* } value The value to insert.
478478 */
@@ -487,7 +487,7 @@ runtimeFunctions.listInsert = `const listInsert = (list, idx, value) => {
487487
488488/**
489489 * Delete a value from a list.
490- * @param {import('../engine/variable') } list The list.
490+ * @param {!Variable } list The list.
491491 * @param {* } idx The Scratch index in the list.
492492 */
493493runtimeFunctions . listDelete = `const listDelete = (list, idx) => {
@@ -505,7 +505,7 @@ runtimeFunctions.listDelete = `const listDelete = (list, idx) => {
505505
506506/**
507507 * Return whether a list contains a value.
508- * @param {import('../engine/variable') } list The list.
508+ * @param {!Variable } list The list.
509509 * @param {* } item The value to search for.
510510 * @returns {boolean } True if the list contains the item
511511 */
@@ -524,7 +524,7 @@ runtimeFunctions.listContains = `const listContains = (list, item) => {
524524
525525/**
526526 * pm: Returns whether a list contains a value, using Array.some
527- * @param {import('../engine/variable') } list The list.
527+ * @param {!Variable } list The list.
528528 * @param {* } item The value to search for.
529529 * @returns {boolean } True if the list contains the item
530530 */
@@ -534,7 +534,7 @@ runtimeFunctions.listContainsFastest = `const listContainsFastest = (list, item)
534534
535535/**
536536 * Find the 1-indexed index of an item in a list.
537- * @param {import('../engine/variable') } list The list.
537+ * @param {!Variable } list The list.
538538 * @param {* } item The item to search for
539539 * @returns {number } The 1-indexed index of the item in the list, otherwise 0
540540 */
@@ -549,7 +549,7 @@ runtimeFunctions.listIndexOf = `const listIndexOf = (list, item) => {
549549
550550/**
551551 * Get the stringified form of a list.
552- * @param {import('../engine/variable') } list The list.
552+ * @param {!Variable } list The list.
553553 * @returns {string } Stringified form of the list.
554554 */
555555runtimeFunctions . listContents = `const listContents = list => {
0 commit comments