Skip to content

Commit

Permalink
Patched imports of Move and MoveDraft types
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviary2 committed Jan 12, 2025
1 parent adf4e5a commit dea5eae
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/client/scripts/esm/chess/logic/checkmate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import typeutil from '../util/typeutil.js';
/**
* Type Definitions
* @typedef {import('./gamefile.js').gamefile} gamefile
* @typedef {import('../logic/movepiece.js').Move} Move
* @typedef {import('./movepiece.js').Move} Move
*/

"use strict";
Expand Down
2 changes: 1 addition & 1 deletion src/client/scripts/esm/chess/logic/legalmoves.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import movesets from './movesets.js';
/**
* Type Definitions
* @typedef {import('./gamefile.js').gamefile} gamefile
* @typedef {import('../../game/chess/movesequence.js').MoveDraft} MoveDraft
* @typedef {import('./movepiece.js').MoveDraft} MoveDraft
* @typedef {import('./boardchanges.js').Piece} Piece
* @typedef {import('./movesets.js').PieceMoveset} PieceMoveset
* @typedef {import('./movesets.js').BlockingFunction} BlockingFunction
Expand Down
4 changes: 2 additions & 2 deletions src/client/scripts/esm/chess/logic/movepiece.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ function forEachMove(gamefile: gamefile, targetIndex: number, callback: Callable

/**
* Iterates to a certain move index.
* Callable should be a move application function
* Callable should be a move application function,
* either {@link applyMove}, or movesequence.viewMove.
* @param {gamefile} gamefile
* @param {number} index
* @param {CallableFunction} callback
Expand All @@ -348,7 +349,6 @@ function gotoMove(gamefile: gamefile, index: number, callback: CallableFunction)
gamefile.moveIndex = i;
callback(move);
}

}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/client/scripts/esm/chess/logic/specialdetect.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import fivedimensionalpromote from './fivedimensionalpromote.js';
/**
* Type Definitions
* @typedef {import('./gamefile.js').gamefile} gamefile
* @typedef {import('../../game/chess/movesequence.js').MoveDraft} MoveDraft
* @typedef {import('./movepiece.js').MoveDraft} MoveDraft
*/

"use strict";
Expand Down
2 changes: 1 addition & 1 deletion src/client/scripts/esm/game/chess/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import gameslot from './gameslot.js';

/**
* Type Definitions
* @typedef {import('./movesequence.js').MoveDraft} MoveDraft
* @typedef {import('../../chess/logic/movepiece.js').MoveDraft} MoveDraft
* @typedef {import('../../chess/logic/legalmoves.js').LegalMoves} LegalMoves
* @typedef {import('../../chess/logic/boardchanges.js').Piece} Piece
*/
Expand Down

0 comments on commit dea5eae

Please sign in to comment.