Error- 'TData' is defined but never used.eslint@typescript-eslint/no-unused-vars #5222
Unanswered
kcalderon37
asked this question in
Q&A
Replies: 5 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. |
0 replies
|
I am wondering if any solution to this instead of adding the |
0 replies
|
Upvoting same for me. |
0 replies
|
Still persisting in |
0 replies
|
I find that declare module '@tanstack/table-core' {
interface ColumnMeta<TData extends RowData, TValue> {
// ...
_?: never & TData & TValue
}
} |
0 replies
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.
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?
All reactions