Use new eslint-plugin-functional instead of tslint-immutable
This commit is contained in:
@ -21,9 +21,9 @@ import { ITableWidthProperties } from "./table-width";
|
||||
algorithm will expand columns to fit its content
|
||||
*/
|
||||
export interface ITableOptions {
|
||||
readonly rows: TableRow[];
|
||||
readonly rows: readonly TableRow[];
|
||||
readonly width?: ITableWidthProperties;
|
||||
readonly columnWidths?: number[];
|
||||
readonly columnWidths?: readonly number[];
|
||||
readonly margins?: ITableCellMarginOptions;
|
||||
readonly indent?: ITableWidthProperties;
|
||||
readonly float?: ITableFloatOptions;
|
||||
@ -38,6 +38,7 @@ export class Table extends XmlComponent {
|
||||
public constructor({
|
||||
rows,
|
||||
width,
|
||||
// eslint-disable-next-line functional/immutable-data
|
||||
columnWidths = Array<number>(Math.max(...rows.map((row) => row.CellCount))).fill(100),
|
||||
margins,
|
||||
indent,
|
||||
|
Reference in New Issue
Block a user