Added a `.d.ts` and compiled with latest version of compiler