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
Copy file name to clipboardExpand all lines: docusaurus/docs/reactnative/customization/typescript.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ type StreamChatType = {
42
42
```
43
43
44
44
:::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.
46
46
47
47
Eg:
48
48
@@ -121,7 +121,7 @@ The [TypeScript Example App](https://github.com/GetStream/stream-chat-react-nati
121
121
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).
122
122
123
123
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.
0 commit comments