Skip to content

Documentation / @agentick/react / LineEditorResult

Interface: LineEditorResult ​

Defined in: react/src/hooks/use-line-editor.ts:23

Properties ​

clear() ​

clear: () => void

Defined in: react/src/hooks/use-line-editor.ts:29

Returns ​

void


completedRanges ​

completedRanges: readonly CompletedRange[]

Defined in: react/src/hooks/use-line-editor.ts:27


completion ​

completion: CompletionState | null

Defined in: react/src/hooks/use-line-editor.ts:26


cursor ​

cursor: number

Defined in: react/src/hooks/use-line-editor.ts:25


editor ​

editor: LineEditor

Defined in: react/src/hooks/use-line-editor.ts:33

Direct access to the underlying LineEditor instance.


handleInput() ​

handleInput: (keystroke, text) => void

Defined in: react/src/hooks/use-line-editor.ts:31

Process a normalized keystroke. See LineEditor.handleInput.

Parameters ​

keystroke ​

string | null

text ​

string

Returns ​

void


setValue() ​

setValue: (value) => void

Defined in: react/src/hooks/use-line-editor.ts:28

Parameters ​

value ​

string

Returns ​

void


value ​

value: string

Defined in: react/src/hooks/use-line-editor.ts:24

Released under the ISC License.