-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-using-typescript-tsx-c1a9535a81007e50ad20.js.map
1 lines (1 loc) · 1.87 KB
/
component---src-pages-using-typescript-tsx-c1a9535a81007e50ad20.js.map
1
{"version":3,"sources":["webpack:///./src/pages/using-typescript.tsx"],"names":["UsingTypescript","data","path","title","site","buildTime","href","to","query"],"mappings":"8FAAA,0GAyBeA,UAZyC,SAAC,GAAD,IAAGC,EAAH,EAAGA,KAAMC,EAAT,EAASA,KAAT,OACtD,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAKC,MAAM,qBACX,sEACA,uEAA4C,wCAA5C,+DAAyH,2CAAzH,wEACA,uEAA4C,0CAA5C,oBAAgF,0CAAhF,gBAAgH,yCAAhH,UACA,6DAAkCD,EAAlC,wBAA6DD,EAAKG,KAAKC,UAAvE,KACA,8DAAmC,uBAAGC,KAAK,6CAAR,kCAAnC,KACA,kBAAC,OAAD,CAAMC,GAAG,KAAT,6BAMG,IAAMC,EAAQ","file":"component---src-pages-using-typescript-tsx-c1a9535a81007e50ad20.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 }) => (\n <Layout>\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.com/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":""}