UNPKG

tsunamy

Version:

A new typesript framework

12 lines (11 loc) 421 B
import { HttpStatus } from './http-status'; export declare class ResponseEntity<T> { private readonly code; private readonly body?; constructor(httpStatus: HttpStatus, body?: T); static ok<T>(body: T): ResponseEntity<T>; static internalServerError(): ResponseEntity<string>; static httpStatus(httpStatus: HttpStatus): ResponseEntity<string>; getCode(): number; getBody(): T | undefined; }