Skip to main content
browser.OperationEditor What a form library supplies to bind to an operation. Output is what the library’s validation produces from Input.

Type parameters

Hierarchy

Methods

read

▸ read(): Input The current input. Bijection reads it directly before an attempt and before capture, so a delayed change notification cannot be missed.

Returns

Input

Inherited from

EditorStatePort.read

subscribe

▸ subscribe(listener): () => void Notify after edits, including programmatic ones.

Parameters

Returns

fn ▸ (): void
Returns
void

Inherited from

EditorStatePort.subscribe

load

▸ load(state): void Establish both the baseline and the current input, and clear the previous interaction’s errors, touched state and submission history. Called for every recovered draft, reset and new draft, even when the values are equal. Notifications it causes synchronously are ignored.

Parameters

Returns

void

Inherited from

EditorStatePort.load

attempt

▸ attempt<Result>(continueWith, options): Promise<EditorAttempt<Result>> Run the library’s own submission pipeline: its submission state, its validation, its focus and its later revalidation behaviour. Call continueWith only after the library accepts the input, and await it within the library’s submission. The signal aborts when Bijection no longer wants the handoff; a library that cannot stop its validator may ignore it, since a handoff after abort captures nothing.

Type parameters

Parameters

Returns

Promise<EditorAttempt<Result>>

replaceServerIssues

▸ replaceServerIssues(issues): void Replace Bijection’s previous contribution of feedback with these issues. Never clear feedback the library has installed since, and keep every issue for a field visible.

Parameters

Returns

void

setEditable

▸ Optional setEditable(editable): void Follow Bijection’s editing restrictions: no editing while restoring or once input is captured into a request.

Parameters

Returns

void