-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-using-typescript-tsx-ec89e82605e2a0c5e9c7.js.map
1 lines (1 loc) · 2.13 KB
/
component---src-pages-using-typescript-tsx-ec89e82605e2a0c5e9c7.js.map
1
{"version":3,"sources":["webpack://gatsby-starter-blog/./src/pages/using-typescript.tsx"],"names":["data","path","location","title","site","buildTime","href","Link","to"],"mappings":"kLA6CA,UAhCwD,SAAC,GAAD,IACtDA,EADsD,EACtDA,KACAC,EAFsD,EAEtDA,KACAC,EAHsD,EAGtDA,SAHsD,OAKtD,gBAAC,IAAD,CAAQC,MAAM,mBAAmBD,SAAUA,GACzC,gBAAC,IAAD,CAAKC,MAAM,qBACX,oEACA,qEAC2C,sCAD3C,+DAE8C,yCAF9C,wEAKA,qEAC2C,wCAD3C,oBAEM,wCAFN,gBAEsC,uCAFtC,UAIA,2DACiCF,EADjC,uBAC2D,IACxDD,EAAKI,KAAKC,UAFb,KAIA,2DACkC,IAChC,qBAAGC,KAAK,6CAAR,kCAFF,KAOA,gBAAC,EAAAC,KAAD,CAAMC,GAAG,KAAT","file":"component---src-pages-using-typescript-tsx-ec89e82605e2a0c5e9c7.js","sourcesContent":["// If you don't want to use TypeScript you can delete this file!\nimport * as 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>> = ({\n data,\n path,\n location,\n}) => (\n <Layout title=\"Using TypeScript\" location={location}>\n <SEO title=\"Using TypeScript\" />\n <h1>Gatsby supports TypeScript by default!</h1>\n <p>\n This means that you can create and write <em>.ts/.tsx</em> files for your\n pages, components etc. Please note that the <em>gatsby-*.js</em> files\n (like gatsby-node.js) currently don't support TypeScript yet.\n </p>\n <p>\n For type checking you'll want to install <em>typescript</em> via npm and\n run <em>tsc --init</em> to create a <em>.tsconfig</em> file.\n </p>\n <p>\n You're currently on the page \"{path}\" which was built on{\" \"}\n {data.site.buildTime}.\n </p>\n <p>\n To learn more, head over to our{\" \"}\n <a href=\"https://www.gatsbyjs.com/docs/typescript/\">\n documentation about TypeScript\n </a>\n .\n </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":""}