From 05901457c6adf599cebeba9bb06a69edaa2159dd Mon Sep 17 00:00:00 2001 From: flextremedev Date: Mon, 17 Aug 2020 18:54:13 +0200 Subject: [PATCH] Correct casing of TypeScript --- README.md | 4 ++-- docs/Introduction.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 79f6416..0304c1f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ There cases when you want to check if a value is a React component. You might ev ## The solution -`react-type-check` checks if the value is some sort of a React component and also tells Typescript if it is. +`react-type-check` checks if the value is some sort of a React component and also tells TypeScript if it is. ## Getting started @@ -45,7 +45,7 @@ if (isReactComponent(maybeRC)) { ``` ```tsx -// Typescript +// TypeScript import { isReactComponent } from 'react-type-check'; let maybeRC: React.ComponentType | string = () => (
I'm a React component
diff --git a/docs/Introduction.mdx b/docs/Introduction.mdx index 07034b4..e930096 100644 --- a/docs/Introduction.mdx +++ b/docs/Introduction.mdx @@ -7,7 +7,7 @@ route: / ## The problem There cases when you want to check if a value is a React component. You might even want it to be typeguarded. Checking for React components isn't trivial at all. For example it depends on which JavaScript syntax you're using. ## The solution -`react-type-check` checks if the value is some sort of a React component and also tells Typescript if it is. +`react-type-check` checks if the value is some sort of a React component and also tells TypeScript if it is. ## Getting started Install this package as a dependency: ``` @@ -36,7 +36,7 @@ if (isReactComponent(maybeRC)) { ``` ```tsx -// Typescript +// TypeScript import { isReactComponent } from 'react-type-check'; let maybeRC: React.ComponentType | string = () => (
I'm a React component