Skip to content

Commit 63d38bb

Browse files
authored
Correct casing of TypeScript (#15)
1 parent 0da95a0 commit 63d38bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ There cases when you want to check if a value is a React component. You might ev
88

99
## The solution
1010

11-
`react-type-check` checks if the value is some sort of a React component and also tells Typescript if it is.
11+
`react-type-check` checks if the value is some sort of a React component and also tells TypeScript if it is.
1212

1313
## Getting started
1414

@@ -45,7 +45,7 @@ if (isReactComponent(maybeRC)) {
4545
```
4646
4747
```tsx
48-
// Typescript
48+
// TypeScript
4949
import { isReactComponent } from 'react-type-check';
5050
let maybeRC: React.ComponentType | string = () => (
5151
<div>I'm a React component</div>

docs/Introduction.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ route: /
77
## The problem
88
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.
99
## The solution
10-
`react-type-check` checks if the value is some sort of a React component and also tells Typescript if it is.
10+
`react-type-check` checks if the value is some sort of a React component and also tells TypeScript if it is.
1111
## Getting started
1212
Install this package as a dependency:
1313
```
@@ -36,7 +36,7 @@ if (isReactComponent(maybeRC)) {
3636
```
3737
3838
```tsx
39-
// Typescript
39+
// TypeScript
4040
import { isReactComponent } from 'react-type-check';
4141
let maybeRC: React.ComponentType | string = () => (
4242
<div>I'm a React component</div>

0 commit comments

Comments
 (0)