Skip to content

AnyToPromiseWithCtx

@tsed/platform-http

Usage

typescript
import { AnyToPromiseWithCtx } from "@tsed/platform-http";

See /packages/platform/platform-http/src/types/common/domain/AnyToPromiseWithCtx.ts.

Overview

ts
class AnyToPromiseWithCtx extends AnyToPromise {
    $ctx: PlatformContext;
    constructor($ctx: PlatformContext);
    isDone(): boolean;
    call(cb: Function): Promise<AnyPromiseResult<any>>;
    destroy(): void;
    isCanceledResponse(process: any): boolean;
}

$ctx

ts
$ctx: PlatformContext;

isDone

ts
isDone(): boolean;

call

ts
call(cb: Function): Promise<AnyPromiseResult<any>>;

destroy

ts
destroy(): void;

isCanceledResponse

ts
isCanceledResponse(process: any): boolean;

Released under the MIT License.