Type Alias: OptionalQueryExecutor
ts
type OptionalQueryExecutor = <R, D, T>(type: T, data?: D) => Optional<R>;Defined in: src/wirestate-react/types/queries.ts:78
Represents the unction returned by useOptionalQueryExecutor.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
R | unknown | The result type of the query. |
D | unknown | The type of the data payload. |
T extends QueryType | QueryType | The query identifier type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
type | T | The query identifier. |
data? | D | Optional payload for the query. |
Returns
Optional<R>
The synchronous query result, or null if no handler was found.
Remarks
Typically returned by useOptionalQueryExecutor. Returns null when no handler is registered.