Skip to content

normalizeCommandHistoryCursor

This content is for v1.3.0. Switch to the latest version for up-to-date documentation.

normalizeCommandHistoryCursor(currentIndex, itemCount): CommandHistoryCursorIndex

Defined in: domain/storage/command-history-navigation.ts:108

Command history cursorを現在の件数に合わせて正規化。

CommandHistoryCursorIndex

現在のcursor index。

number

Command history件数。

CommandHistoryCursorIndex

正規化後cursor index。

const result = normalizeCommandHistoryCursor(3, 2);
// false

Last updated: