@nestia/sdk
Version:
Nestia SDK and Swagger generator
21 lines (20 loc) • 669 B
TypeScript
import { RequestMethod } from "@nestjs/common";
export declare namespace PathAnalyzer {
export const join: (...args: string[]) => string;
export const joinWithGlobalPrefix: (props: {
globalPrefix: string;
exclude: IGlobalPrefixExclude[] | undefined;
excludePath?: string;
method: string;
path: string;
}) => string;
export const escape: (str: string) => string | null;
export const parameters: (str: string) => string[] | null;
interface IGlobalPrefixExclude {
path: string;
method?: RequestMethod;
requestMethod?: RequestMethod;
pathRegex?: RegExp;
}
export {};
}