Gatsby supports TypeScript by default!

This means that you can create and write .ts/.tsx files for your pages, components, and gatsby-* configuration files (for example gatsby-config.ts).

For type checking you'll want to install typescript via npm and run tsc --init to create a tsconfig file.

You're currently on the page "/using-typescript/" which was built on 2025-07-07 06:22 am UTC.

To learn more, head over to our documentation about TypeScript.

Go back to the homepage
Profile picture
michael ☻︎ 🇯🇵
Web Engineer(PHP/Laravel, Python/FastAPI/Flask, TypeScript/Vue/React, AWS/GCP, etc.) / Freelance /
© 2025, PWE