From 7108d18e44b266da7c34c9b45e6d18799f888077 Mon Sep 17 00:00:00 2001 From: zhongsp Date: Sun, 2 Jul 2023 18:57:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9D=97=E8=A7=A3=E6=9E=90=E6=97=B6?= =?UTF-8?q?=E8=80=83=E8=99=91=20`typeRoots`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.1 --- zh/release-notes/typescript-5.1.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zh/release-notes/typescript-5.1.md b/zh/release-notes/typescript-5.1.md index 76ec9c83..65e363f6 100644 --- a/zh/release-notes/typescript-5.1.md +++ b/zh/release-notes/typescript-5.1.md @@ -285,3 +285,10 @@ let x = ; ``` 感谢 [Oleksandr Tarasiuk](https://github.com/a-tarasyuk) 的 [PR](https://github.com/microsoft/TypeScript/pull/53799)。 + +## 模块解析时考虑 `typeRoots` + +当 TypeScript 的模块解析策略无法解析一个路径时,它现在会相对于 `typeRoots` 继续解析。 + +更多详情请参考 [PR](https://github.com/microsoft/TypeScript/pull/51715)。 +