Error- 'TData' is defined but never used.eslint@typescript-eslint/no-unused-vars #5222
Replies: 4 comments
-
Yes I'm also facing this issue and like you I've had to ignore the issue. It would be nice if we could get this fixed. |
Beta Was this translation helpful? Give feedback.
-
I am wondering if any solution to this instead of adding the |
Beta Was this translation helpful? Give feedback.
-
Upvoting same for me. |
Beta Was this translation helpful? Give feedback.
-
Still persisting in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm encountering issues while declaring an interface and receiving errors related to TData and TValue. I followed the same structure as the example below:
import '@tanstack/react-table'
declare module '@tanstack/table-core' {
interface ColumnMeta<TData extends RowData, TValue> {
foo: string
}
}
The issues are like:
"All type parameters are unused.ts(6205)
'TData' is defined but never used.eslint@typescript-eslint/no-unused-vars
'TData' is defined but never used.eslintno-unused-vars
(type parameter) TData in ColumnMeta<TData extends unknown, TValue>"
the only solution for now is adding comment:
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
Im using version: 8.10.7. Is anyone else experiencing the same issue?
Beta Was this translation helpful? Give feedback.
All reactions