Export when as an ambient external declaration
Add done method to when promise
Merge branch 'when-done' into when-combined