DefinitelyTyped/table/table-tests.ts
Evan Shortiss 1ab9f78008 add typings for table module (#13441)
* add typings for table module

* fill in index.d.ts

* update as per suggestions

* update tests

* implement review suggestions
2016-12-20 05:46:00 -08:00

16 lines
277 B
TypeScript

import * as table from 'table';
const border: table.JoinStruct = table.getBorderCharacters('norc');
const data = [
['first name', 'last name'],
['jane', 'doe'],
['john', 'doe']
];
const config: table.TableUserConfig = {
border: border
};
table.table(data, config);