Skip to content

AnyPromiseResult

@tsed/core

Usage

typescript
import { AnyPromiseResult } from "@tsed/core";

See /packages/core/src/types/domain/AnyToPromise.ts.

Overview

ts
interface AnyPromiseResult<T = any> {
    state: AnyToPromiseStatus;
    type: AnyToPromiseResponseTypes;
    status?: number;
    headers?: Record<string, any>;
    data: T;
}

state

ts
state: AnyToPromiseStatus;

type

ts
type: AnyToPromiseResponseTypes;

status

ts
status?: number;

headers

ts
headers?: Record<string, any>;

data

ts
data: T;

Released under the MIT License.