mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fix code block in jsdoc (#37864)
This commit is contained in:
1 parent
813efb49af
commit
2a25901c54
1 file changed
+2
-1
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user