mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
22 lines
329 B
Text
22 lines
329 B
Text
// @flow
|
|
|
|
export type PresentableRole = {
|
|
id: string,
|
|
color: number,
|
|
name: string,
|
|
position: number,
|
|
safe: boolean
|
|
}
|
|
|
|
export type Permissions = {
|
|
canManageRoles: boolean,
|
|
isAdmin: boolean,
|
|
faked?: boolean,
|
|
__faked?: Permissions
|
|
}
|
|
|
|
export type CachedRole = {
|
|
id: string,
|
|
position: number,
|
|
color?: number
|
|
}
|