Skip to content

eo-typewriterjs


eo-typewriterjs / normalizeCursors

Function: normalizeCursors()

ts
function normalizeCursors(selector): readonly string[];

Defined in: core/commands/helpers/normalize-cursors.helper.ts:14

Parameters

ParameterTypeDescription
selectorTCursorSelectorThe cursor selector to normalize

Returns

readonly string[]

An ordered array of cursor id strings

Description

Normalize a TCursorSelector into an ordered array of cursor ids. A string selector becomes a single-element array. An array selector is returned as-is.

Released under the MIT License.