Output is what
the library’s validation produces from Input.
Type parameters
Hierarchy
-
EditorStatePort<Input> ↳OperationEditor
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.readsubscribe
▸ subscribe(listener): () => void
Notify after edits, including programmatic ones.
Parameters
Returns
fn
▸ (): void
Returns
void
Inherited from
EditorStatePort.subscribeload
▸ 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.loadattempt
▸ 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