diff --git a/src/compiler/path.ts b/src/compiler/path.ts index a550e1a0e9b..f377b411b24 100644 --- a/src/compiler/path.ts +++ b/src/compiler/path.ts @@ -527,6 +527,7 @@ namespace ts { * * ```ts * getNormalizedPathComponents("to/dir/../file.ext", "/path/") === ["/", "path", "to", "file.ext"] + * ``` */ export function getNormalizedPathComponents(path: string, currentDirectory: string | undefined) { return reducePathComponents(getPathComponents(path, currentDirectory)); @@ -856,4 +857,4 @@ namespace ts { export function isNodeModulesDirectory(dirPath: Path) { return endsWith(dirPath, "/node_modules"); } -} \ No newline at end of file +}