Cannot use typeof
on an empty module
#3053
Labels
Question
An issue which isn't directly actionable in code
typeof
on an empty module
#3053
Hi,
TS: 1.4/1.5
In the following, the compiler issues an error on the last line:
This has turned out to be a problem for the case when a module is defined across multiple files. For certain references the module will be empty, as it is initialised in a different context.
Why do we have no error for
bar
but an error forempty
?The text was updated successfully, but these errors were encountered: