Create when.d.ts
Merge pull request #1089 from derekcicerone/patch-10

Create when.d.ts