# CellSelectionState

# Type Alias: CellSelectionState

```ts
type CellSelectionState = CellSelectionRange[];
```

Defined in: [features/cell-selection/cellSelectionFeature.types.ts:41](https://github.com/TanStack/table/blob/main/packages/table-core/src/features/cell-selection/cellSelectionFeature.types.ts#L41)

Ordered range operations that produce the final selection. The last entry is
the active operation that shift-extend and drag operate on.

A bare array, matching `SortingState` and `ColumnFiltersState`. Drag session
state deliberately lives outside this slice as non-reactive instance data, so
nothing here is transient and the whole slice is safe to persist.
