Type alias SessionContextGroup

SessionContextGroup: {
    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

        Returns Promise<{
            unsubscribe: (() => void);
        }>

  • getCurrentContext: ((type?: string) => Promise<Context>)
      • (type?: string): Promise<Context>
      • Parameters

        • Optional type: string

        Returns Promise<Context>

  • id: string
  • setContext: ((context: Context) => Promise<void>)
      • (context: Context): Promise<void>
      • Parameters

        Returns Promise<void>

Generated using TypeDoc