I have this TS code, and I want to make that part to be also typed :
const { data: { person, car, another } }: any = useContext(MyContext);
the issue here is that ES lint says:
warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
I have 3 interfaces created for person, car, another and I want to reuse them after the useContext. My objective is to just share person, car, another
Any clues?