added snap.d.ts