2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"+wGG":function(e,t,a){"use strict";a.r(t),a.d(t,"query",(function(){return o}));var n=a("q1tI"),l=a.n(n),r=a("Wbzz"),c=a("vrFN");t.default=function(e){var t=e.data,a=e.path;return l.a.createElement("div",null,l.a.createElement(c.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"))};var o="2907560070"}}]);
|
|
//# sourceMappingURL=component---src-pages-using-typescript-tsx-cf434b27240684b31228.js.map
|