Skip to content

Commit 44ae045

Browse files
authored
🤖 Merge PR DefinitelyTyped#73253 Make title optional in autoColumnsDefinitions tabulator-tables by @louwers
1 parent 163fc26 commit 44ae045

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

‎types/tabulator-tables/index.d.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,8 @@ export interface OptionsColumns {
719719
/** If you set the autoColumns option to true, every time data is loaded into the table through the data option or through the setData function, Tabulator will examine the first row of the data and build columns to match that data. */
720720
autoColumns?: boolean | undefined | "full";
721721
autoColumnsDefinitions?:
722-
| ((columnDefinitions?: ColumnDefinition[]) => ColumnDefinition[])
723-
| ColumnDefinition[]
722+
| ((columnDefinitions?: ColumnDefinition[]) => Partial<ColumnDefinition>[])
723+
| Partial<ColumnDefinition>[]
724724
| Record<string, Partial<ColumnDefinition>>
725725
| undefined;
726726

‎types/tabulator-tables/tabulator-tables-tests.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,12 @@ table = new Tabulator("#example-table", {
923923
},
924924
});
925925

926+
new Tabulator("#example-table", {
927+
autoColumnsDefinitions: [
928+
{ field: "migration_up", formatter: "textarea" },
929+
],
930+
});
931+
926932
let colDefs: ColumnDefinition[] = [];
927933
colDefs.push({
928934
field: "name",

0 commit comments

Comments
 (0)