UNPKG

@tsed/ts-doc

Version:

Generate documentation in markdown for TypeScript API

19 lines (17 loc) 501 B
import { Type } from "@tsed/core"; import { JsonSchemaObject } from "../../domain/JsonSchema"; import { JsonHeader, JsonHeaders } from "../../interfaces/JsonOpenSpec"; export interface ReturnsChainedDecorators extends MethodDecorator { /** * Add header. * @param key * @param value */ Header(key: string, value: number | string | (JsonHeader & { value?: string | number; })): this; /** * Add headers */ Headers(headers: JsonHeaders): this; }