[v8] Is there a Typescript regression? #4265
Replies: 1 comment 1 reply
-
Working on a fix
Tanner Linsley
…On Aug 4, 2022, 8:19 AM -0600, Franek Madej ***@***.***>, wrote:
Hello,
Updating to v8.5.6 fails our type checks - apparently our way of defining columns is wrong:
const columnHelper = createColumnHelper<Transaction>();
const columns = [
columnHelper.accessor("date", {
header: () => "Data",
}),
columnHelper.accessor("title", {
header: () => "Tytuł",
}),
columnHelper.accessor(
(row) => `${row.amount ?? 0} ${row.currency?.symbol ?? ""}`,
{
id: "amountDisplay",
header: () => "Kwota",
}
),
We are not using ColumnDef as Typescript properly inferred types from current revision of code and everything was working properly. Is this something that we should change? Or is there unwanted regression?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kosciak9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Updating to v8.5.6 fails our type checks - apparently our way of defining columns is wrong:
We are not using
ColumnDef
as Typescript properly inferred types from current revision of code and everything was working properly. Is this something that we should change? Or is there unwanted regression?Beta Was this translation helpful? Give feedback.
All reactions