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
/
src
/
ConversationRole.ts
10 lines
(7 loc)
•
196 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
Permission
}
from
"./Types"
;
export
class
ConversationRole
{
permissions
:
Array
<
Permission
>;
constructor
(
permissions:
Array
<Permission>
) {
this
.
permissions
= permissions; } }