Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

wrapWord does not exists in ColumnConfig interface #72

Closed
Shuunen opened this issue Sep 2, 2018 · 0 comments
Closed

wrapWord does not exists in ColumnConfig interface #72

Shuunen opened this issue Sep 2, 2018 · 0 comments

Comments

@Shuunen
Copy link
Contributor

Shuunen commented Sep 2, 2018

Using this :

const data = [
    ['0A', '0B', '0C'],
    ['1A', '1B', '1C'],
    ['2A', '2B', '2C']
];
const config = {
    columns: {
      0: {
       wrapWord: true,
      }
    }
  };
console.log(table(data, config));

Will results with this error :

TSError: ⨯ Unable to compile TypeScript:
src/index.ts(594,27): error TS2345: Argument of type '{ columns: { 0: { wrapWord: boolean; }; }; }' is not assignable to parameter of type 'TableUserConfig'
gajus pushed a commit that referenced this issue Sep 3, 2018
@gajus gajus closed this as completed Sep 3, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants