Fix code block in jsdoc (#37864)

This commit is contained in:
Ravi van Rooijen
2020-04-09 19:31:41 +02:00
committed by GitHub
parent 813efb49af
commit 2a25901c54

View File

@@ -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");
}
}
}