We just released a TypeScript Definition file for our tracker! I know that many of you use and love Typescript. I must admit, I have been skeptical that it would be adopted. I really like writing JavaScript. But there are so many fantastic projects finding success with TypeScript and TrackJS, so it’s time we bring them together.

Starting in tracker release 2.4.0, you’ll find a tracker.d.ts TypeScript definition file. This documents our complete JavaScript API: everything from the TrackJS initialization object to the window.trackJs global namespace.

I tried it out with a little sandbox project, and I think it’s pretty slick. VSCode even shows intellisense from it!

VSCode Tracker Intellisense Tracker Intellisense in VSCode

We hope you find it valuable. Please let us know if you see any issues using the definitions, or anything else with the tracker. We’d love to make it better for you. If you’re not using TrackJS yet, why not grab a free 14-day trial of TrackJS! You’ll be amazed by what you can fix.

Did you like this?
CEO TrackJS
Todd is a software engineer, business leader, and developer advocate with 20+ years of experience. He is a co-founder and CEO of TrackJS and Request Metrics,...

What to do Next:

1. Try TrackJS on Your Website

TrackJS gives you the visibility to find and fix your errors before users find them. Get started in 5 minutes tracking errors with all the context you'll need to squash the important bugs in your app.

2. Get the Debugger Newsletter

Join The Debugger for amazing JavaScript tips, debugging walkthroughs, news, and product releases for Request Metrics. No more than once a week, probably a lot less.