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 alongside RawTextElement:
export interface RawNumberElement {
type: 'raw_number';
text: string;
}
-
Consider typed models for table cells and column_settings — right now column_settings is TableBlockColumnSettings[] (already typed), but the cell union could be more explicit about what each cell type accepts (e.g. rich_text cells have elements, raw_text/raw_number have text).
Reference
- Table block docs — documents
raw_number as a valid cell type
- Current
TableBlock definition: packages/types/src/block-kit/blocks.ts
Summary
The
TableBlockinterface in@slack/typesis missing theraw_numbercell type documented at docs.slack.dev/reference/block-kit/blocks/table-block.Currently
rowsis typed as(RichTextBlock | RawTextElement)[][]— but the docs state that table cells can have a type ofrich_text,raw_text, orraw_number.Feature request
Add
RawNumberElement— a new composition object type alongsideRawTextElement: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
raw_numberas a valid cell typeTableBlockdefinition:packages/types/src/block-kit/blocks.ts