Skip to content

Commit 10392f4

Browse files
committed
add any and update example
1 parent 540a4c7 commit 10392f4

File tree

3 files changed

+44
-9
lines changed

3 files changed

+44
-9
lines changed

examples/typescript-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"react": "^16.13.1",
77
"react-dom": "^16.13.1",
88
"react-scripts": "3.4.1",
9-
"stream-chat": "^2.3.0",
9+
"stream-chat": "^2.4.0",
1010
"stream-chat-react": "^2.4.1",
1111
"typescript": "~3.7.2"
1212
},

examples/typescript-app/yarn.lock

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,13 +1004,20 @@
10041004
dependencies:
10051005
regenerator-runtime "^0.13.4"
10061006

1007-
"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.1", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.3", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.1":
1007+
"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.1", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.3", "@babel/runtime@^7.5.1":
10081008
version "7.10.5"
10091009
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.10.5.tgz#303d8bd440ecd5a491eae6117fd3367698674c5c"
10101010
integrity sha512-otddXKhdNn7d0ptoFRHtMLa8LqDxLYwTjB4nYgM1yy5N6gU/MUf8zqyyLltCH3yAVitBzmwK4us+DD0l/MauAg==
10111011
dependencies:
10121012
regenerator-runtime "^0.13.4"
10131013

1014+
"@babel/runtime@^7.3.1":
1015+
version "7.11.2"
1016+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.11.2.tgz#f549c13c754cc40b87644b9fa9f09a6a95fe0736"
1017+
integrity sha512-TeWkU52so0mPtDcaCTxNBI/IHiz0pZgr8VEFqXFtZWpYD08ZB6FaSwVAS8MKRQAP3bYKiVjwysOJgMFY28o6Tw==
1018+
dependencies:
1019+
regenerator-runtime "^0.13.4"
1020+
10141021
"@babel/template@^7.10.4":
10151022
version "7.10.4"
10161023
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.10.4.tgz#3251996c4200ebc71d1a8fc405fba940f36ba278"
@@ -1589,6 +1596,13 @@
15891596
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339"
15901597
integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==
15911598

1599+
"@types/jsonwebtoken@^8.3.5":
1600+
version "8.5.0"
1601+
resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-8.5.0.tgz#2531d5e300803aa63279b232c014acf780c981c5"
1602+
integrity sha512-9bVao7LvyorRGZCw0VmH/dr7Og+NdjYSsKAxB43OQoComFbBgsEpoR9JW6+qSq/ogwVBg8GI2MfAlk4SYI4OLg==
1603+
dependencies:
1604+
"@types/node" "*"
1605+
15921606
"@types/minimatch@*":
15931607
version "3.0.3"
15941608
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
@@ -1634,6 +1648,11 @@
16341648
"@types/prop-types" "*"
16351649
csstype "^2.2.0"
16361650

1651+
1652+
version "7.1.13"
1653+
resolved "https://registry.yarnpkg.com/@types/seamless-immutable/-/seamless-immutable-7.1.13.tgz#dc8d645914086300e49410c72f6e5fae902fdbc5"
1654+
integrity sha512-kvgsr2sI8NBtxgR+YZNgSk0S+isAtS77TKtITUCGcNHlwYERrvgv6DbLER4TbvUK4/Qclm8C9jXzHqegpV2Ikg==
1655+
16371656
"@types/stack-utils@^1.0.1":
16381657
version "1.0.1"
16391658
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
@@ -1662,6 +1681,18 @@
16621681
"@types/testing-library__dom" "*"
16631682
pretty-format "^25.1.0"
16641683

1684+
"@types/uuid@^3.4.5":
1685+
version "3.4.9"
1686+
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-3.4.9.tgz#fcf01997bbc9f7c09ae5f91383af076d466594e1"
1687+
integrity sha512-XDwyIlt/47l2kWLTzw/mtrpLdB+GPSskR2n/PIcPn+VYhVO77rGhRncIR5GPU0KRzXuqkDO+J5qqrG0Y8P6jzQ==
1688+
1689+
"@types/ws@^6.0.3":
1690+
version "6.0.4"
1691+
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-6.0.4.tgz#7797707c8acce8f76d8c34b370d4645b70421ff1"
1692+
integrity sha512-PpPrX7SZW9re6+Ha8ojZG4Se8AZXgf0GK6zmfqEuCsY49LFDNXO3SByp44X3dFEqtB73lkCDAdUazhAjVPiNwg==
1693+
dependencies:
1694+
"@types/node" "*"
1695+
16651696
"@types/yargs-parser@*":
16661697
version "15.0.0"
16671698
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d"
@@ -10475,12 +10506,16 @@ stream-chat-react@^2.4.1:
1047510506
textarea-caret "^3.1.0"
1047610507
uuid "^7.0.3"
1047710508

10478-
stream-chat@^2.3.0:
10479-
version "2.3.0"
10480-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-2.3.0.tgz#5ebe22e4078ee9bd52ceb704f7b3f4b6e2073923"
10481-
integrity sha512-L7evlsIyTFpi3/rhwAdQvEXVDzUngxGAo6HV03DTKKAVh4/tu2jKEID+Lv1fCISoJshlwcSXf54ppwvWY/ASSw==
10509+
stream-chat@^2.4.0:
10510+
version "2.5.0"
10511+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-2.5.0.tgz#1859f810ffaeb53ddf19b47c2c5bc8d480bac016"
10512+
integrity sha512-uh6Ms3ovyGaTME21o8/hjjh3FbdNu6Ph3Me16IMjINTubUI0tJjj+NRqcg1Wnk2WlMmsFJlOQ9Fnx3fSVdw+mw==
1048210513
dependencies:
1048310514
"@babel/runtime" "^7.3.1"
10515+
"@types/jsonwebtoken" "^8.3.5"
10516+
"@types/seamless-immutable" "7.1.13"
10517+
"@types/uuid" "^3.4.5"
10518+
"@types/ws" "^6.0.3"
1048410519
axios "^0.18.1"
1048510520
base64-js "^1.3.1"
1048610521
form-data "^2.3.3"

types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ import { ScrollSeekConfiguration } from 'react-virtuoso/dist/engines/scrollSeekE
1313

1414
export type Mute = Client.Mute<StreamChatReactUserType>;
1515
export type AnyType = Record<string, any>;
16-
export type StreamChatReactUserType = {
16+
export type StreamChatReactUserType = AnyType & {
1717
status?: string;
1818
image?: string;
1919
mutes?: Array<Mute>;
2020
};
21-
export type StreamChatReactChannelType = {
21+
export type StreamChatReactChannelType = AnyType & {
2222
image?: string;
2323
subtitle?: string;
2424
member_count?: number;
2525
};
26-
export type StreamChatMessageType = {
26+
export type StreamChatMessageType = AnyType & {
2727
event?: Client.Event<
2828
AnyType,
2929
StreamChatReactChannelType,

0 commit comments

Comments
 (0)