I have a context:
export const templateContext = createContext({
isButtonDisable: true,
setIsButtonDisable: (p: boolean) => {},
isSubmitReady: <boolean>false,
setIsSubmitReady: () => {},
buttonShow: false,
handleButtonShow: (val: boolean) => {},
steps: [] ,
handleSteps: (val: never) => {},
});
Run Code Online (Sandbox Code Playgroud)
I am not understanding How can I define the type of array in this context. especially the steps array. That array also contains object