You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I get a type error on all column modifiers (e.g. resizeHandle) Argument of type 'Column<DataType>' is not assignable to parameter of type 'Column<unknown>'.
Argument of type 'Column<DataType>' is not assignable to parameter of type 'Column<unknown>'.
The types returned by 'table.args.named.columns()' are incompatible between these types.
Type 'ColumnConfig<DataType>[]' is not assignable to type 'ColumnConfig<unknown>[]'.
Type 'ColumnConfig<DataType>' is not assignable to type 'ColumnConfig<unknown>'.
Types of property 'value' are incompatible.
Type '((context: CellContext<DataType>) => ContentValue) | undefined' is not assignable to type '((context: CellContext<unknown>) => ContentValue) | undefined'.
Type '(context: CellContext<DataType>) => ContentValue' is not assignable to type '(context: CellContext<unknown>) => ContentValue'.
Types of parameters 'context' and 'context' are incompatible.
Type 'CellContext<unknown>' is not assignable to type 'CellContext<DataType>'.
The types returned by 'column.table.args.named.columns()' are incompatible between these types.
Type 'ColumnConfig<unknown>[]' is not assignable to type 'ColumnConfig<DataType>[]'.
Type 'ColumnConfig<unknown>' is not assignable to type 'ColumnConfig<DataType>'.
Types of property 'value' are incompatible.
Type '((context: CellContext<unknown>) => ContentValue) | undefined' is not assignable to type '((context: CellContext<DataType>) => ContentValue) | undefined'.
Type '(context: CellContext<unknown>) => ContentValue' is not assignable to type '(context: CellContext<DataType>) => ContentValue'.
Types of parameters 'context' and 'context' are incompatible.
Type 'CellContext<DataType>' is not assignable to type 'CellContext<unknown>'.
Types of property 'row' are incompatible.
Type 'Row<DataType>' is not assignable to type 'Row<unknown>'.
Type 'unknown' is not assignable to type 'DataType'.glint(2345)
It seems like the Column modifiers does not pass on the types of the Column, and instead always assigns the default Column<T = unknown>:
johanrd
changed the title
Argument of type 'Column<RowInterface>' is not assignable to parameter of type 'Column<unknown>'.
Argument of type 'Column<DataType>' is not assignable to parameter of type 'Column<unknown>'.
Feb 21, 2024
Hi. I get a type error on all column modifiers (e.g.
resizeHandle
)Argument of type 'Column<DataType>' is not assignable to parameter of type 'Column<unknown>'.
It seems like the Column modifiers does not pass on the types of the Column, and instead always assigns the default
Column<T = unknown>
:ember-headless-table/ember-headless-table/src/-private/column.ts
Line 15 in 8111252
See example of steps to reproduce with
resizeHandle
:The text was updated successfully, but these errors were encountered: