WarUI

Full TypeScript Typings with Generic Row Types

GRID-A30-F03P0beyond-baselinePlanned

WarGrid ships first-class TypeScript declarations in which grid options, column definitions, events and the API are generic over the row type. This enables autocompletion and compile-time checks of field names and cell value types.

Planned. This page shows the specification from issue #210. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A typed Order grid with an embedded type-checking editor that shows inferred types on hover.

Expected behavior

A misspelled field produces a visible type error. Valid fields show the inferred value types in the renderer params. Changing the row type updates the diagnostics.

Planned API surface

WarGridOptions<TRow>ColumnDef<TRow,TValue>GridApi<TRow>CellRendererParams<TRow,TValue>RowKey<TRow>

Acceptance criteria

  • Column field accepts only keyof TRow or valid nested path strings (pending)
  • valueGetter return type flows into the renderer params (pending)
  • Event payloads are typed with TRow (pending)
  • Declarations compile under strict mode with no 'any' leaks in the public surface (pending)
  • Type tests run in CI using a type-assertion test file (pending)