-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-using-typescript-tsx-e106dbeb96d3d3ccefc8.js.map
1 lines (1 loc) · 1.96 KB
/
component---src-pages-using-typescript-tsx-e106dbeb96d3d3ccefc8.js.map
1
{"version":3,"sources":["webpack:///./src/pages/using-typescript.tsx"],"names":["UsingTypescript","data","path","location","title","site","buildTime","href","to"],"mappings":"6FAAA,oEAyBeA,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","file":"component---src-pages-using-typescript-tsx-e106dbeb96d3d3ccefc8.js","sourcesContent":["// If you don't want to use TypeScript you can delete this file!\nimport React from \"react\"\nimport { PageProps, Link, graphql } from \"gatsby\"\n\nimport Layout from \"../components/layout\"\nimport SEO from \"../components/seo\"\n\ntype DataProps = {\n site: {\n buildTime: string\n }\n}\n\nconst UsingTypescript: React.FC<PageProps<DataProps>> = ({ data, path, location }) => (\n <Layout title=\"Using TypeScript\" location={location}>\n <SEO title=\"Using TypeScript\" />\n <h1>Gatsby supports TypeScript by default!</h1>\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>\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>\n <p>You're currently on the page \"{path}\" which was built on {data.site.buildTime}.</p>\n <p>To learn more, head over to our <a href=\"https://www.gatsbyjs.org/docs/typescript/\">documentation about TypeScript</a>.</p>\n <Link to=\"/\">Go back to the homepage</Link>\n </Layout>\n)\n\nexport default UsingTypescript\n\nexport const query = graphql`\n {\n site {\n buildTime(formatString: \"YYYY-MM-DD hh:mm a z\")\n }\n }\n`\n"],"sourceRoot":""}