1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[970],{8619:function(e,t,n){n.r(t),n.d(t,{Head:function(){return o}});var l=n(7294),a=n(1883),c=n(8678),r=n(9357);const o=()=>l.createElement(r.Z,{title:"Using TypeScript"});t.default=e=>{let{data:t,location:n}=e;return l.createElement(c.Z,null,l.createElement("h1",null,"Gatsby supports ",l.createElement("b",null,"TypeScript by default")),l.createElement("p",null,"This means that you can create and write ",l.createElement("code",null,".ts/.tsx")," files for your pages, components, and ",l.createElement("code",null,"gatsby-*")," configuration files (for example ",l.createElement("code",null,"gatsby-config.ts"),")."),l.createElement("p",null,"For type checking you'll want to install ",l.createElement("code",null,"typescript")," via npm and run ",l.createElement("code",null,"tsc --init")," to create a ",l.createElement("code",null,"tsconfig")," file."),l.createElement("p",null,"You're currently on the page ",l.createElement("code",null,n.pathname)," which was built on ",t.site.buildTime,"."),l.createElement("p",null,"To learn more, head over to our"," ",l.createElement("a",{href:"https://www.gatsbyjs.com/docs/how-to/custom-configuration/typescript/"},"documentation about TypeScript"),"."),l.createElement(a.Link,{to:"/"},"Go back to the homepage"))}}}]); 2//# sourceMappingURL=component---src-pages-using-typescript-tsx-687eda1f5cf4c0126b24.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.