Type alias SessionContextGroup
Session
Context
Group
: { addContextHandler
: ((handler
: ContextHandler, contextType
?: string) => Promise<{ unsubscribe
: (() => void); }>); getCurrentContext
: ((type
?: string) => Promise<Context>); id
: string; setContext
: ((context
: Context) => Promise<void>); }
Type declaration
-
addContextHandler: ((handler: ContextHandler, contextType?: string) => Promise<{
unsubscribe: (() => void);
}>)
-
- (handler: ContextHandler, contextType?: string): Promise<{
unsubscribe: (() => void);
}>
-
Parameters
-
-
Optional
contextType: string
Returns Promise<{
unsubscribe: (() => void);
}>
-
getCurrentContext: ((type?: string) => Promise<Context>)
-
id: string
-
setContext: ((context: Context) => Promise<void>)
-
- (context: Context): Promise<void>
-
Returns Promise<void>