From 2a25901c546bbbffb5627589b9ea7091a3c9fc0d Mon Sep 17 00:00:00 2001 From: Ravi van Rooijen Date: Thu, 9 Apr 2020 19:31:41 +0200 Subject: [PATCH] Fix code block in jsdoc (#37864) --- src/compiler/path.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +}