normalizeCompletionCursor
This content is for v1.3.0. Switch to the latest version for up-to-date documentation.
normalizeCompletionCursor(
currentIndex,itemCount):CompletionCursorIndex
Defined in: domain/cli/completion-cursor.ts:133
Completion cursorを現在の件数に合わせて正規化。
Parameters
Section titled “Parameters”currentIndex
Section titled “currentIndex”現在のcursor index。
itemCount
Section titled “itemCount”number
Completion item件数。
Returns
Section titled “Returns”正規化後cursor index。
Example
Section titled “Example”const result = normalizeCompletionCursor(5, 3);// false