interface ContextService<C, R> {
    executeInContext(
        contextValue: undefined | null | C,
        callback: () => void,
    ): void;
    executeInContextAsync(
        contextValue: undefined | null | C,
        callback: () => Promise<void>,
    ): Promise<void>;
    get(): undefined | C;
    getOriginal(): undefined | C;
}

Type Parameters

  • C
  • R

Hierarchy (View Summary)

Methods