UNPKG

tsoa-custom-decorators

Version:

Build swagger-compliant REST APIs using TypeScript and Node

6 lines (5 loc) 545 B
import * as ts from 'typescript'; export declare function getDecorators(node: ts.Node, isMatching: (identifier: ts.Identifier) => boolean): ts.Identifier[] | undefined; export declare function getDecoratorName(node: ts.Node, isMatching: (identifier: ts.Identifier) => boolean): string | undefined; export declare function getDecoratorTextValue(node: ts.Node, isMatching: (identifier: ts.Identifier) => boolean): string | undefined; export declare function isDecorator(node: ts.Node, isMatching: (identifier: ts.Identifier) => boolean): boolean;