-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-using-typescript-tsx-f7e88ceecbb28c7d9cda.js
2 lines (2 loc) · 1.77 KB
/
component---src-pages-using-typescript-tsx-f7e88ceecbb28c7d9cda.js
1
2
"use strict";(self.webpackChunkgatsby_starter_blog=self.webpackChunkgatsby_starter_blog||[]).push([[970],{8619:function(e,t,n){n.r(t);var a=n(7294),l=n(1082),r=n(6775),c=n(262);t.default=function(e){var t=e.data,n=e.path,o=e.location;return a.createElement(r.Z,{title:"Using TypeScript",location:o},a.createElement(c.Z,{title:"Using TypeScript"}),a.createElement("h1",null,"Gatsby supports TypeScript by default!"),a.createElement("p",null,"This means that you can create and write ",a.createElement("em",null,".ts/.tsx")," files for your pages, components etc. Please note that the ",a.createElement("em",null,"gatsby-*.js")," files (like gatsby-node.js) currently don't support TypeScript yet."),a.createElement("p",null,"For type checking you'll want to install ",a.createElement("em",null,"typescript")," via npm and run ",a.createElement("em",null,"tsc --init")," to create a ",a.createElement("em",null,"tsconfig")," file."),a.createElement("p",null,"You're currently on the page \"",n,'" which was built on'," ",t.site.buildTime,"."),a.createElement("p",null,"To learn more, head over to our"," ",a.createElement("a",{href:"https://www.gatsbyjs.com/docs/typescript/"},"documentation about TypeScript"),"."),a.createElement(l.Link,{to:"/"},"Go back to the homepage"))}},6775:function(e,t,n){n.d(t,{Z:function(){return r}});var a=n(3471),l=n(7294),r=function(e){var t=e.children,n=e.path;return l.createElement("div",{className:"index-module--pageWrapper--d2f5b"},l.createElement(a.Z,{path:n}),l.createElement("main",{className:"index-module--main--e3a19"},l.createElement("div",null,t,l.createElement("footer",null,"Copyright © ",(new Date).getFullYear()," present Powered by 洪九果品研发团队"))))}}}]);
//# sourceMappingURL=component---src-pages-using-typescript-tsx-f7e88ceecbb28c7d9cda.js.map