UNPKG
@chatscope/use-chat
Version:
alpha (4.0.0-alpha.9)
latest (3.1.2)
4.0.0-alpha.9
4.0.0-alpha.8
4.0.0-alpha.7
4.0.0-alpha.6
4.0.0-alpha.5
4.0.0-alpha.4
4.0.0-alpha.3
4.0.0-alpha.2
4.0.0-alpha.1
3.1.2
3.1.1
3.1.0
3.0.0
2.0.3
2.0.2
2.0.1
2.0.0
1.5.0
1.4.1
1.4.0
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
React hook for state management in chat applications
chatscope.io
chatscope/use-chat
@chatscope/use-chat
/
dist
/
Participant.d.ts
12 lines
(11 loc)
•
303 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
UserId
}
from
"./Types"
;
import
{
ConversationRole
}
from
"./"
;
export
declare
type
ParticipantParams
= {
id
:
UserId
;
role
?:
ConversationRole
; };
export
declare
class
Participant
{
readonly
id
:
UserId
;
role
:
ConversationRole
;
constructor
(
{ id, role }:
ParticipantParams
); }