typescript-swagger
Version:
Generate Swagger files from a decorator library like typescript-rest or a @decorators/express.
9 lines (8 loc) • 772 B
TypeScript
import { JSDocTag, Node } from 'typescript';
export declare function getJSDocDescription(node: Node): string | undefined;
export declare function getMatchingJSDocTags(node: Node, isMatching: (t: JSDocTag) => boolean): Array<JSDocTag>;
export declare function isExistJSDocTag(node: Node, tagName: ((tag: JSDocTag) => boolean) | string): boolean;
export declare function getJSDocTags(node: Node, tagName: string): Array<JSDocTag>;
export declare function getJSDocTagComment(node: Node, tagName: ((tag: JSDocTag) => boolean) | string): undefined | string;
export declare function getJSDocTagNames(node: Node, requireTagName?: boolean): Array<string>;
export declare function getFirstMatchingJSDocTagName(node: Node, isMatching: (t: JSDocTag) => boolean): string | undefined;