mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 02:29:10 +00:00
add stylelint
This commit is contained in:
parent
47a2e5694e
commit
928c9cf07c
83 changed files with 10807 additions and 1770 deletions
30
packages/roleypoly-types/server.js.flow
Normal file
30
packages/roleypoly-types/server.js.flow
Normal file
|
@ -0,0 +1,30 @@
|
|||
// @flow
|
||||
import type { Category } from './category'
|
||||
import type { PresentableRole, Permissions } from './role'
|
||||
|
||||
export type ServerSlug = {
|
||||
id: string,
|
||||
name: string,
|
||||
ownerID: string,
|
||||
icon: string
|
||||
}
|
||||
|
||||
export type ServerModel = {
|
||||
id: string,
|
||||
categories: {
|
||||
[uuid: string]: Category
|
||||
},
|
||||
message: string
|
||||
}
|
||||
|
||||
export type PresentableServer = ServerModel & {
|
||||
id: string,
|
||||
gm?: {
|
||||
color: number | string,
|
||||
nickname: string,
|
||||
roles: string[]
|
||||
},
|
||||
server: ServerSlug,
|
||||
roles: ?PresentableRole[],
|
||||
perms: Permissions
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue