AnyPromiseResult
@tsed/core
Usage
typescript
import { AnyPromiseResult } from "@tsed/core";
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;