Represents a type that removes the void
type. For instance, Always<number|void>
is just number
.
Type parameter | Description |
---|---|
T |
Converts a form state type as a task state type by extracting the task representing the submit action. Yields the provided task state as is. This is useful in normalizing a form and a task for presentations that interacts with task states like buttons.
Type parameter | Description |
---|---|
T: FormOrTask |
Describes the result of domain validation on an input.
Type parameter | Description |
---|---|
TDomainValue | |
TDomainError |
Represents any falsy value.
Describes a form or a task.
Describes the valid structure for an input group content, which is:
Represents a type that is either a constant value or a function that returns
the type of that constant value. For instance, MaybeConstant<() => number>
is either a function that returns number
, or just number
itself.
Type parameter | Description |
---|---|
T: function |
Represents a type or a promise that resolves to that type. For instance,
MaybePromise<number>
is either number
or a promise that resolves number
.
Type parameter | Description |
---|---|
T |
Describes the result of parsing an input value.
Type parameter | Description |
---|---|
TInputValue |
the input value |
TParseError |
the parse error |
TDomainValue |
the resulting domain value the from parsing |
Describes a submit progress, which is divided into the validation phase and the action phase.
Type parameter | Description |
---|---|
TActionProgress |
Describes a task function.
Type parameter | Description |
---|---|
TArg | |
TResult | |
TProgress |
Describes a validated input options, which is a combination of the input options and the validator options.
Type parameter | Description |
---|---|
TInputValue | |
TDomainValue | |
TParseError | |
TDomainError |
Represents a validation error, both domain and parsing.
Type parameter | Description |
---|---|
TValue | |
TDomainValue | |
TParseError | |
TDomainError |
Creates a React component decorator that syncs a HTML element's focus state to the headless focus state.
Type parameter | Description |
---|---|
TElement: HTMLElement | |
TState |
Creates a React component decoator that sets up headless DOM query resolution within the life-cycle of the component.
Type parameter | Description |
---|---|
TComponent: Component<any, any, any> |
The type of the component that will resolve the DOM query. |
TMapping: DOMQueryResolutionMapping<any>[] |
The type of the resolution mapping. |
The method should use the component context to emit DOM query resolutions that should be active while the component is active. This method will automatically be called on component mount as well as on component update.
Connects A React component to a state as a projection.
Type parameter | Description |
---|---|
TComponent: Component<any, any, any> |
This function should return the subscriptions to the UI state that should be set up when the state is provided as a prop and torn down when the state is no longer provided.
Generated using TypeDoc
Describes a function where you can register a cancel handler.
The handler function to be called when a task is canceled.