This work implements TableBlock types: add RawNumberElement and consider typed cell/column_settings models (closed)
Summary
The TableBlock interface in @slack/types is missing the raw_number cell type documented at docs.slack.dev/reference/block-kit/blocks/table-block.
Currently rows is typed as (RichTextBlock | RawTextElement)[][] β but the docs state that table cells can have a type of rich_text, raw_text, or raw_number.
Feature request
Add
RawNumberElementβ a new composition object type alongsideRawTextElement:ts export interface RawNumberElement { type: 'raw_number'; text: string; }Consider typed models for table cells and column_settings β right now
column_settingsisTableBlockColumnSettings[](already typed), but the cell union could be more explicit about what each cell type accepts (e.g.rich_textcells haveelements,raw_text/raw_numberhavetext).
Reference
- Table block docs β documents
raw_numberas a valid cell type - Current
TableBlockdefinition:packages/types/src/block-kit/blocks.ts