Type Alias: SimpleTableField<T>
SimpleTableField<
T> = keyofT
Defined in: lib/markdown.ts:241
A simple table field. A string, that's a key of the object supplied to the table function.
Type Parameters
T
T
The type of the objects in the array in the table.
Example
const items = [{name: 'Alice', age: 30}, {name: 'Bob', age: 40}];
console.log(table(items, ['name', 'age']));
// Prints:
//
// | name | age |
// | ---- | --- |
// | Alice | 30 |