-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-using-typescript-tsx-f16d60f62c7d2b3e9bcc.js.map
1 lines (1 loc) · 2.05 KB
/
component---src-pages-using-typescript-tsx-f16d60f62c7d2b3e9bcc.js.map
1
{"version":3,"sources":["webpack:///./src/pages/using-typescript.tsx"],"names":["UsingTypescript","data","path","location","title","site","buildTime","href","to","query"],"mappings":"6FAAA,0GAyBeA,UAZyC,SAAC,GAAD,IAAGC,EAAH,EAAGA,KAAMC,EAAT,EAASA,KAAMC,EAAf,EAAeA,SAAf,OACtD,kBAAC,IAAD,CAAQC,MAAM,mBAAmBD,SAAUA,GACzC,kBAAC,IAAD,CAAKC,MAAM,qBACX,sEACA,uEAA4C,wCAA5C,+DAAyH,2CAAzH,wEACA,uEAA4C,0CAA5C,oBAAgF,0CAAhF,gBAAgH,yCAAhH,UACA,6DAAkCF,EAAlC,wBAA6DD,EAAKI,KAAKC,UAAvE,KACA,8DAAmC,uBAAGC,KAAK,6CAAR,kCAAnC,KACA,kBAAC,OAAD,CAAMC,GAAG,KAAT,6BAMG,IAAMC,EAAQ","file":"component---src-pages-using-typescript-tsx-f16d60f62c7d2b3e9bcc.js","sourcesContent":["// If you don't want to use TypeScript you can delete this file!\r\nimport React from \"react\"\r\nimport { PageProps, Link, graphql } from \"gatsby\"\r\n\r\nimport Layout from \"../components/layout\"\r\nimport SEO from \"../components/seo\"\r\n\r\ntype DataProps = {\r\n site: {\r\n buildTime: string\r\n }\r\n}\r\n\r\nconst UsingTypescript: React.FC<PageProps<DataProps>> = ({ data, path, location }) => (\r\n <Layout title=\"Using TypeScript\" location={location}>\r\n <SEO title=\"Using TypeScript\" />\r\n <h1>Gatsby supports TypeScript by default!</h1>\r\n <p>This means that you can create and write <em>.ts/.tsx</em> files for your pages, components etc. Please note that the <em>gatsby-*.js</em> files (like gatsby-node.js) currently don't support TypeScript yet.</p>\r\n <p>For type checking you'll want to install <em>typescript</em> via npm and run <em>tsc --init</em> to create a <em>.tsconfig</em> file.</p>\r\n <p>You're currently on the page \"{path}\" which was built on {data.site.buildTime}.</p>\r\n <p>To learn more, head over to our <a href=\"https://www.gatsbyjs.org/docs/typescript/\">documentation about TypeScript</a>.</p>\r\n <Link to=\"/\">Go back to the homepage</Link>\r\n </Layout>\r\n)\r\n\r\nexport default UsingTypescript\r\n\r\nexport const query = graphql`\r\n {\r\n site {\r\n buildTime(formatString: \"YYYY-MM-DD hh:mm a z\")\r\n }\r\n }\r\n`\r\n"],"sourceRoot":""}