Type alias CellValue<T>

CellValue<T>: T extends Cell<infer TValue>
    ? TValue
    : never

A utility type that given a cell type Cell<TValue> returns TValue.

Type Parameters

  • T

    The cell type.

Example

type A = CellValue<Cell<number>>;
// A = number