From 3088a9dfed9e022aa77b308399fa456494f1569f Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Mon, 28 Nov 2022 19:54:26 -0300 Subject: [PATCH] forgot to remove types from commands.js Signed-off-by: Victor Seiji Hariki --- js/commands.js | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/js/commands.js b/js/commands.js index 68a7a84..20211b1 100644 --- a/js/commands.js +++ b/js/commands.js @@ -7,45 +7,6 @@ const _commands_events = new Observer(); /** CommandNonExistentError */ class CommandNonExistentError extends Error {} -/** - * An object that represents an entry of the command in the history - * - * @typedef CommandEntry - * @property {string} id A unique ID generated for this entry - * @property {string} title The title passed to the command being run - * @property {() => void | Promise} undo A method to undo whatever the command did - * @property {() => void | Promise} redo A method to redo whatever undo did - * @property {{[key: string]: any}} state The state of the current command instance - */ - -/** - * A command, which is run, then returns a CommandEntry object that can be used to manually undo/redo it - * - * @callback Command - * @param {string} title The title passed to the command being run - * @param {*} options A options object for the command - * @returns {Promise} - */ - -/** - * A method for running a command (or redoing it) - * - * @callback CommandDoCallback - * @param {string} title The title passed to the command being run - * @param {*} options A options object for the command - * @param {{[key: string]: any}} state The state of the current command instance - * @returns {void | Promise} - */ - -/** - * A method for undoing a command - * - * @callback CommandUndoCallback - * @param {string} title The title passed to the command when it was run - * @param {{[key: string]: any}} state The state of the current command instance - * @returns {void | Promise} - */ - /** Global Commands Object */ const commands = makeReadOnly( {