Export when as an ambient external declaration
Merge pull request #3241 from Nemo157/when-as-ambient-external-declaration

Export when as an ambient external declaration