Type Alias: SimpleTableField<T>
SimpleTableField<
T
>: keyofT
A simple table field. A string, that's a key of the object supplied to the table function.
Type Parameters
• 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 |