From 7c1dfe58ae9c564e4448d56b60c54dedd3699df3 Mon Sep 17 00:00:00 2001 From: Attila Gonda Date: Wed, 22 May 2024 14:15:25 +0100 Subject: [PATCH] Fix type-only import link to point to the reference document --- packages/documentation/copy/en/reference/Enums.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/reference/Enums.md b/packages/documentation/copy/en/reference/Enums.md index 87b77db6227e..7e5e23b625e8 100644 --- a/packages/documentation/copy/en/reference/Enums.md +++ b/packages/documentation/copy/en/reference/Enums.md @@ -377,7 +377,7 @@ These pitfalls pertain to _ambient_ const enums only (basically const enums in ` These bugs are especially pernicious because it is common to run automated tests at roughly the same time as projects are built, with the same dependency versions, which misses these bugs completely. 3. [`importsNotUsedAsValues: "preserve"`](/tsconfig#importsNotUsedAsValues) will not elide imports for const enums used as values, but ambient const enums do not guarantee that runtime `.js` files exist. The unresolvable imports cause errors at runtime. - The usual way to unambiguously elide imports, [type-only imports](/docs/handbook/modules.html#importing-types), [does not allow const enum values](https://github.com/microsoft/TypeScript/issues/40344), currently. + The usual way to unambiguously elide imports, [type-only imports](/docs/handbook/modules/reference.html#type-only-imports-and-exports), [does not allow const enum values](https://github.com/microsoft/TypeScript/issues/40344), currently. Here are two approaches to avoiding these pitfalls: