Recently, I came across some code that I inherited and I'm currently working on getting it transpiled and up and running. So, as I was inspecting the components/TableAsset.tsx
file, I stumbled upon these lines of code:
import { Table } from "antd";
const { Column, ColumnGroup } = Table;
class MyTable extends Table<Interfaces.ViewEntry> { }
Despite my best efforts, I encountered numerous typescript errors which I am struggling to comprehend. However, what do you think was the original intention behind this snippet of code? And how would you go about writing it in today's Typescript 3.x version?