Define interfaces in react

interface IAppProps {
    //
    :
    locale: string;
    isAuthenticated: boolean;
    isCollapsed: boolean;
    isLoading: boolean;
    isConnected: boolean;
    isConnecting: boolean;
    
    //keystringvaluestring
    localeMessages: { [key: string]: string };
    
    //
    setLoading?: typeof setLoading;
    checkOnline?: typeof checkOnline.started;
    switchWindow?: typeof switchWindow.started;
}
Mar.02,2021

setLoading is optional, type setLoading

Menu