UNPKG

@trapi/metadata

Version:

Generate REST-API metadata scheme from TypeScript Decorators.

19 lines 724 B
import type { MethodDeclaration } from 'typescript'; import { AbstractGenerator } from '../abstract'; import type { MetadataGenerator } from '../metadata'; import type { Method } from './type'; export declare class MethodGenerator extends AbstractGenerator<MethodDeclaration> { private method; constructor(node: MethodDeclaration, current: MetadataGenerator); isValid(): boolean; getMethodName(): string; generate(controllerPath: string): Method; protected getCurrentLocation(): string; private buildParameters; private determineVerb; private buildResponse; private guessResponseType; private getResponseExamples; private mergeResponses; } //# sourceMappingURL=module.d.ts.map