You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/unsupported_syntax.md
+3
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,9 @@ See https://github.com/microsoft/TypeScript/issues/51825 for more information.
92
92
93
93
### The `declare ...` hazard
94
94
95
+
_Note: This section describes a potential hazard in the TypeScript language that exists with or without `ts-blank-space`.
96
+
It is described here only because adopting type-stripping may lead to developers reaching for `declare` as part of migration._
97
+
95
98
As with `declare const ...`, while `ts-blank-space` will erase syntax such as `declare enum ...` and `declare namespace ...` without error it should be used with understanding and mild caution.
96
99
`declare` in TypeScript is an _assertion_ by the author that a value will exist at runtime.
0 commit comments