Fix new JS verification errors and force specific TSC version

The new TSC compiler does stricter checking on the JS documentation
strings. All documentation strings have been updated to pass with
the current version (7.0.2)

In addition, the version of the TSC compiler used during the github
action will be fixed to 7.0.2, so that we don't get these type of
sudden errors again in the future. Unfortunately this means we need
to periodically update this manually.
This commit is contained in:
Max Berger
2026-07-12 09:31:54 +02:00
parent 1e31d757cb
commit 1f1e94340d
8 changed files with 45 additions and 45 deletions

View File

@@ -42,7 +42,7 @@ export class CollectionsScene {
* @param {string} user
* @param {?string} password
* @param {Collection} principal_collection The princial collection
* @param {function(?string):void} onerror Called when an error occurs, before the
* @param {(error: string | null) => void} onerror Called when an error occurs, before the
* scene is popped.
*/
constructor(user, password, principal_collection, onerror) {

View File

@@ -169,10 +169,10 @@ function update_share_list(user, password, collection, errorHandler) {
* @param {import('../api/sharing.js').Share} share
* @param {HTMLElement} template
* @param {string} delete_label
* @param {function(string, string, import('../api/sharing.js').Share, function(?string):void):void} delete_action
* @param {function():void} [onDeleteSuccess] Optional extra callback after a successful delete.
* @param {(user: string, password: string | null, share: import('../api/sharing.js').Share, callback: (error: string | null) => void) => void} delete_action
* @param {(() => void) | null} [onDeleteSuccess] Optional extra callback after a successful delete.
*/
function add_share_row_node(user, password, collection, share, template, delete_label, delete_action, onDeleteSuccess) {
function add_share_row_node(user, password, collection, share, template, delete_label, delete_action, onDeleteSuccess = null) {
let pathortoken = share["PathOrToken"] || "";
let node = /** @type {HTMLElement} */ (template.cloneNode(true));
node.classList.remove("hidden");