Skip to content

Commit 1cc3ec0

Browse files
committed
chore: main context type added
1 parent af1610e commit 1cc3ec0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Shared/Providers/types.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react'
1818

1919
import { SERVER_MODE } from '../../Common'
2020
import { ServerInfo } from '../Components/Header/types'
21-
import { DevtronLicenseInfo, LicenseInfoDialogType } from '..'
21+
import { DevtronLicenseInfo, LicenseInfoDialogType, ToastManager } from '..'
2222

2323
export interface MainContext {
2424
serverMode: SERVER_MODE
@@ -66,6 +66,12 @@ export interface MainContext {
6666
licenseData: DevtronLicenseInfo
6767
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>
6868
canFetchHelmAppStatus: boolean
69+
bgUpdated: boolean
70+
handleAppUpdate: () => void
71+
doesNeedRefresh: boolean
72+
updateServiceWorker: (reloadPage?: boolean) => Promise<void>
73+
handleControllerChange: () => void
74+
updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>>
6975
}
7076

7177
export interface MainContextProviderProps {

0 commit comments

Comments
 (0)