From f47293c23723fe46848aeef5248fb6bfd4aa880a Mon Sep 17 00:00:00 2001 From: "@s.roertgen" Date: Wed, 8 Nov 2023 12:17:21 +0100 Subject: [PATCH] Delete example file --- src/pages/using-typescript.tsx | 54 ---------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/pages/using-typescript.tsx diff --git a/src/pages/using-typescript.tsx b/src/pages/using-typescript.tsx deleted file mode 100644 index e7ea67b..0000000 --- a/src/pages/using-typescript.tsx +++ /dev/null @@ -1,54 +0,0 @@ -// If you don't want to use TypeScript you can delete this file! -import * as React from "react" -import { PageProps, Link, graphql } from "gatsby" - -import Layout from "../components/layout" -import SEO from "../components/seo" - -type DataProps = { - site: { - buildTime: string - } -} - -const UsingTypescript: React.FC> = ({ - data, - path, - location, -}) => ( - - -

Gatsby supports TypeScript by default!

-

- This means that you can create and write .ts/.tsx files for your - pages, components etc. Please note that the gatsby-*.js files - (like gatsby-node.js) currently don't support TypeScript yet. -

-

- For type checking you'll want to install typescript via npm and - run tsc --init to create a .tsconfig file. -

-

- You're currently on the page "{path}" which was built on{" "} - {data.site.buildTime}. -

-

- To learn more, head over to our{" "} - - documentation about TypeScript - - . -

- Go back to the homepage -
-) - -export default UsingTypescript - -export const query = graphql` - { - site { - buildTime(formatString: "YYYY-MM-DD hh:mm a z") - } - } -`