I'm trying to add types to the destructured variables however they are still returning any.
Questions: How can I add types while destructing?
export interface TableReturnState {
status: number;
data: APIOrders[];
columns: [] | JSX.Element[];
sort: Function;
}
const { data, sort, columns, status }: TableReturnState = useTableHook(
configuration
);