Skip to content

wrapWord does not exists in ColumnConfig interface  #72

@Shuunen

Description

@Shuunen

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions