# RangeSourceOptions (@salmonui/data)

> The RangeSourceOptions interface of @salmonui/data.

Canonical: https://salmonui.dev/docs/reference/data/RangeSourceOptions

```ts
import type { RangeSourceOptions } from '@salmonui/data';
```

Entry index: https://salmonui.dev/docs/reference/data (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data.md).

## Reference

Kind: interface

```ts
interface RangeSourceOptions<T> {
    readonly load: (range: Range, options: {
        readonly signal: AbortSignalLike;
    }) => Promise<readonly T[]>;
    readonly overscan?: number | undefined;
    readonly cacheSize?: number | undefined;
    readonly initialRows?: readonly T[] | undefined;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `load` | `readonly load: (range: Range, options: {     readonly signal: AbortSignalLike; }) => Promise<readonly T[]>;` |  | Loads the rows of a range; honor `signal` to stop superseded requests. |
| `overscan` | `readonly overscan?: number \| undefined;` | optional | Widens each request by this fraction of its span on both sides (default 0.5), so small pans hit the cache. |
| `cacheSize` | `readonly cacheSize?: number \| undefined;` | optional | Cached ranges (default 8). |
| `initialRows` | `readonly initialRows?: readonly T[] \| undefined;` | optional | Rows before the first load. |
