API reference: @salmonui/data/lookup
LookupOptionsinterface
import type { LookupOptions } from '@salmonui/data/lookup';Also exported from @salmonui/data.
interface LookupOptions {
load(request: LookupRequest): readonly unknown[] | Promise<readonly unknown[]>;
readonly keyField?: string;
readonly ttl?: number;
readonly scheduler?: Scheduler;
}
| Name | Signature | Description |
|---|---|---|
load | load(request: LookupRequest): readonly unknown[] | Promise<readonly unknown[]>; | Loads the rows of |
keyFieldoptional | readonly keyField?: string; | Field of the returned rows holding the looked-up value. Default: the request's |
ttloptional | readonly ttl?: number; | Entry lifetime in ms. Default: never expires. |
scheduleroptional | readonly scheduler?: Scheduler; |