-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent---src-pages-using-typescript-tsx-8c6465c15651e1fbd548.js
More file actions
2 lines (2 loc) · 1.33 KB
/
component---src-pages-using-typescript-tsx-8c6465c15651e1fbd548.js
File metadata and controls
2 lines (2 loc) · 1.33 KB
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"+wGG":function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("Wbzz"),c=a("Bl7J"),o=a("vrFN");t.default=e=>{let{data:t,path:a,location:n}=e;return l.a.createElement(c.a,{title:"Using TypeScript",location:n},l.a.createElement(o.a,{title:"Using TypeScript"}),l.a.createElement("h1",null,"Gatsby supports TypeScript by default!"),l.a.createElement("p",null,"This means that you can create and write ",l.a.createElement("em",null,".ts/.tsx")," files for your pages, components etc. Please note that the ",l.a.createElement("em",null,"gatsby-*.js")," files (like gatsby-node.js) currently don't support TypeScript yet."),l.a.createElement("p",null,"For type checking you'll want to install ",l.a.createElement("em",null,"typescript")," via npm and run ",l.a.createElement("em",null,"tsc --init")," to create a ",l.a.createElement("em",null,".tsconfig")," file."),l.a.createElement("p",null,"You're currently on the page \"",a,'" which was built on ',t.site.buildTime,"."),l.a.createElement("p",null,"To learn more, head over to our ",l.a.createElement("a",{href:"https://www.gatsbyjs.org/docs/typescript/"},"documentation about TypeScript"),"."),l.a.createElement(r.Link,{to:"/"},"Go back to the homepage"))}}}]);
//# sourceMappingURL=component---src-pages-using-typescript-tsx-8c6465c15651e1fbd548.js.map