-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent---src-pages-using-typescript-tsx-ec89e82605e2a0c5e9c7.js
More file actions
2 lines (2 loc) · 1.34 KB
/
Copy pathcomponent---src-pages-using-typescript-tsx-ec89e82605e2a0c5e9c7.js
File metadata and controls
2 lines (2 loc) · 1.34 KB
1
2
(self.webpackChunkgatsby_starter_blog=self.webpackChunkgatsby_starter_blog||[]).push([[970],{2815:function(e,t,n){"use strict";n.r(t);var l=n(7294),a=n(5444),r=n(7198),c=n(3751);t.default=function(e){var t=e.data,n=e.path,o=e.location;return l.createElement(r.Z,{title:"Using TypeScript",location:o},l.createElement(c.Z,{title:"Using TypeScript"}),l.createElement("h1",null,"Gatsby supports TypeScript by default!"),l.createElement("p",null,"This means that you can create and write ",l.createElement("em",null,".ts/.tsx")," files for your pages, components etc. Please note that the ",l.createElement("em",null,"gatsby-*.js")," files (like gatsby-node.js) currently don't support TypeScript yet."),l.createElement("p",null,"For type checking you'll want to install ",l.createElement("em",null,"typescript")," via npm and run ",l.createElement("em",null,"tsc --init")," to create a ",l.createElement("em",null,".tsconfig")," file."),l.createElement("p",null,"You're currently on the page \"",n,'" 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/typescript/"},"documentation about TypeScript"),"."),l.createElement(a.Link,{to:"/"},"Go back to the homepage"))}}}]);
//# sourceMappingURL=component---src-pages-using-typescript-tsx-ec89e82605e2a0c5e9c7.js.map