File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
apps/meteor/app/models/client/models Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11import type { IPermission } from '@rocket.chat/core-typings' ;
2+ import type { StoreApi , UseBoundStore } from 'zustand' ;
23
34import { PrivateCachedCollection } from '../../../../client/lib/cachedCollections' ;
5+ import type { IDocumentMapStore } from '../../../../client/lib/cachedCollections/DocumentMapStore' ;
6+
7+ type PermissionsStore = {
8+ use : UseBoundStore < StoreApi < IDocumentMapStore < IPermission > > > ;
9+ readonly state : IDocumentMapStore < IPermission > ;
10+ } ;
411
512export const AuthzCachedCollection = new PrivateCachedCollection < IPermission > ( {
613 name : 'permissions' ,
714 eventType : 'notify-logged' ,
815} ) ;
916
10- export const Permissions = AuthzCachedCollection . collection ;
17+ export const Permissions = Object . assign ( AuthzCachedCollection . collection ) as PermissionsStore ;
You can’t perform that action at this time.
0 commit comments