-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-using-typescript-tsx-2f9b97cf148785549d09.js.map
1 lines (1 loc) · 2.44 KB
/
component---src-pages-using-typescript-tsx-2f9b97cf148785549d09.js.map
1
{"version":3,"file":"component---src-pages-using-typescript-tsx-2f9b97cf148785549d09.js","mappings":"gLA6CA,UAhCwD,SAAC,GAAD,IACtDA,EADsD,EACtDA,KACAC,EAFsD,EAEtDA,KACAC,EAHsD,EAGtDA,SAHsD,OAKtDC,EAAAA,cAACC,EAAAA,EAAD,CAAQC,MAAM,mBAAmBH,SAAUA,GACzCC,EAAAA,cAACG,EAAAA,EAAD,CAAKD,MAAM,qBACXF,EAAAA,cAAAA,KAAAA,KAAAA,0CACAA,EAAAA,cAAAA,IAAAA,KAAAA,4CAC2CA,EAAAA,cAAAA,KAAAA,KAAAA,YAD3C,+DAE8CA,EAAAA,cAAAA,KAAAA,KAAAA,eAF9C,wEAKAA,EAAAA,cAAAA,IAAAA,KAAAA,4CAC2CA,EAAAA,cAAAA,KAAAA,KAAAA,cAD3C,oBAEMA,EAAAA,cAAAA,KAAAA,KAAAA,cAFN,gBAEsCA,EAAAA,cAAAA,KAAAA,KAAAA,YAFtC,UAIAA,EAAAA,cAAAA,IAAAA,KAAAA,kCACiCF,EADjC,uBAC2D,IACxDD,EAAKO,KAAKC,UAFb,KAIAL,EAAAA,cAAAA,IAAAA,KAAAA,kCACkC,IAChCA,EAAAA,cAAAA,IAAAA,CAAGM,KAAK,6CAAR,kCAFF,KAOAN,EAAAA,cAACO,EAAAA,KAAD,CAAMC,GAAG,KAAT","sources":["webpack://gatsby-starter-blog/./src/pages/using-typescript.tsx"],"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"],"names":["data","path","location","React","Layout","title","Seo","site","buildTime","href","Link","to"],"sourceRoot":""}