Update types.d.ts