Skip to content

Commit a0f2ff5

Browse files
docs: fixing docs grammar
1 parent 393d0df commit a0f2ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docusaurus/docs/reactnative/customization/typescript.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type StreamChatType = {
4242
```
4343

4444
:::note
45-
`LocalAttachmentType`, `LocalChannelType` etc. are type deifinitions for their respective key as per your application types necessities.
45+
`LocalAttachmentType`, `LocalChannelType` etc. are type definitions for their respective key as per your application types necessities.
4646

4747
Eg:
4848

@@ -121,7 +121,7 @@ The [TypeScript Example App](https://github.com/GetStream/stream-chat-react-nati
121121
Core to understanding this usage is [how generics can be applied to JSX elements](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html#generic-type-arguments-in-jsx-elements).
122122

123123
In many cases the use of a single prop such as `client` or `channel` allows TypeScript to infer the generics on an element.
124-
In this case `StreamChatType` is inferred from `channel` and passed to the props type for a custom Attachment component.
124+
In this case `channelType` within `StreamChatType` is inferred from `channel` and passed to the props type for a custom Attachment component.
125125

126126
<img src={inference} alt='TypeScript Inference' />
127127

0 commit comments

Comments
 (0)