Emits undefined
for unknown types in declaration file
#7173
Milestone
undefined
for unknown types in declaration file
#7173
TypeScript Version:
1.7.5 / nightly (1.9.0-dev.20160221)
Code
Lets say I want to export some empty arrays:
and I want to generate a definition file for it:
Expected behavior:
I expect the type to be
any
since the compiler don't know anything about the type.Actual behavior:
Instead, I get
undefined
which is an invalid type (Error: can not find name 'undefined'
).This seems like a bug?
Thanks and keep up the good work, I can't wait for version 2.0.
The text was updated successfully, but these errors were encountered: