export type RegisterClientHelpers = {
getBaseStaticRoute: () => string
+ getBaseRouterRoute: () => string
+
isLoggedIn: () => boolean
+ getAuthHeader: () => { 'Authorization': string } | undefined
+
getSettings: () => Promise<{ [ name: string ]: string }>
getServerConfig: () => Promise<ServerConfig>
notifier: {
- info: (text: string, title?: string, timeout?: number) => void,
- error: (text: string, title?: string, timeout?: number) => void,
+ info: (text: string, title?: string, timeout?: number) => void
+ error: (text: string, title?: string, timeout?: number) => void
success: (text: string, title?: string, timeout?: number) => void
}
showModal: (input: {
- title: string,
- content: string,
- close?: boolean,
- cancel?: { value: string, action?: () => void },
+ title: string
+ content: string
+ close?: boolean
+ cancel?: { value: string, action?: () => void }
confirm?: { value: string, action?: () => void }
}) => void