Create when.d.ts