I have this TypeScript error:
Type 'xyz' is not assignable to type 'TableComponents'.
So I need to cast my type as TableComponents. But this interface is not available when I try to import it using:
import { TableComponents } from 'antd/lib/table/interface';
The interface is listed here as being part of the library.
How do I import it to my React project?