Saltar al contenido

tsoa-next / tsoa-next / normalisePath

Función: normalisePath() ​

ts
function normalisePath(
   path, 
   withPrefix?, 
   withSuffix?, 
   skipPrefixAndSuffixIfEmpty?): string;

Definido en: packages/runtime/src/utils/pathUtils.ts:43

Normaliza el uso de barras en una ruta y aplica opcionalmente un prefijo y sufijo.

Parámetros ​

path ​

string

withPrefix? ​

string

withSuffix? ​

string

skipPrefixAndSuffixIfEmpty? ​

boolean

Devoluciones ​

string

Contributors

No contributors

Changelog

No recent changes

Generación de OpenAPI, generación de rutas y validación en tiempo de ejecución con prioridad en TypeScript.