You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
{"version":3,"file":"component---src-pages-using-typescript-tsx-442a9618757535247250.js","mappings":"wLAyCA,UA5BwD,SAAC,GAAD,IAAGA,EAAH,EAAGA,KAAMC,EAAT,EAASA,KAAT,OACtD,gBAAC,IAAD,KACE,gBAAC,IAAD,CAAKC,MAAM,qBACX,oEACA,qEAC2C,sCAD3C,+DAE8C,yCAF9C,wEAKA,qEAC2C,wCAD3C,oBAEM,wCAFN,gBAEsC,sCAFtC,UAIA,2DACiCD,EADjC,uBAC2D,IACxDD,EAAKG,KAAKC,UAFb,KAIA,2DACkC,IAChC,qBAAGC,KAAK,6CAAR,kCAFF,KAOA,gBAAC,EAAAC,KAAD,CAAMC,GAAG,KAAT","sources":["webpack://gatsby-starter-default/./src/pages/using-typescript.tsx"],"sourcesContent":["// If you don't want to use TypeScript you can delete this file!\r\nimport * as 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 }) => (\r\n <Layout>\r\n <Seo title=\"Using TypeScript\" />\r\n <h1>Gatsby supports TypeScript by default!</h1>\r\n <p>\r\n This means that you can create and write <em>.ts/.tsx</em> files for your\r\n pages, components etc. Please note that the <em>gatsby-*.js</em> files\r\n (like gatsby-node.js) currently don't support TypeScript yet.\r\n </p>\r\n <p>\r\n For type checking you'll want to install <em>typescript</em> via npm and\r\n run <em>tsc --init</em> to create a <em>tsconfig</em> file.\r\n </p>\r\n <p>\r\n You're currently on the page \"{path}\" which was built on{\" \"}\r\n {data.site.buildTime}.\r\n </p>\r\n <p>\r\n To learn more, head over to our{\" \"}\r\n <a href=\"https://www.gatsbyjs.com/docs/typescript/\">\r\n documentation about TypeScript\r\n </a>\r\n .\r\n </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"],"names":["data","path","title","site","buildTime","href","Link","to"],"sourceRoot":""}