# PivotWorkerRequest (@salmonui/pivot-table/engine)

> The PivotWorkerRequest type of @salmonui/pivot-table/engine.

Canonical: https://salmonui.dev/docs/reference/pivot-table/engine/PivotWorkerRequest

```ts
import type { PivotWorkerRequest } from '@salmonui/pivot-table/engine';
```

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

## Reference

Kind: type

```ts
type PivotWorkerRequest = {
    readonly id: number;
    readonly op: 'chunk';
    readonly rows: readonly unknown[];
} | {
    readonly id: number;
    readonly op: 'init';
    readonly options: Record<string, unknown>;
} | {
    readonly id: number;
    readonly op: 'data';
} | {
    readonly id: number;
    readonly op: 'call';
    readonly method: string;
    readonly args: readonly unknown[];
} | {
    readonly id: number;
    readonly op: 'window';
    readonly request: PivotWindowRequest;
} | {
    readonly id: number;
    readonly op: 'fields';
} | {
    readonly id: number;
    readonly op: 'members';
    readonly field: string;
    readonly options?: {
        readonly search?: string;
        readonly limit?: number;
    };
} | {
    readonly id: number;
    readonly op: 'drill';
    readonly rowIndex: number;
    readonly columnIndex: number;
} | {
    readonly id: number;
    readonly op: 'rows';
    readonly indexes: readonly number[];
};
```
