absolutely massive typescript porting time

This commit is contained in:
41666 2019-06-02 18:58:15 -05:00
parent 01f238f515
commit 30d08a630f
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
159 changed files with 2563 additions and 3861 deletions

29
packages/roleypoly-types/server.d.ts vendored Normal file
View file

@ -0,0 +1,29 @@
import { Category } from './category'
import { PresentableRole, Permissions } from './role'
export declare type ServerSlug = {
id: string,
name: string,
ownerID: string,
icon: string
}
export declare type ServerModel = {
id: string,
categories: {
[uuid: string]: Category
},
message: string
}
export declare type PresentableServer = ServerModel & {
id: string,
gm?: {
color?: number | string,
nickname: string,
roles: string[]
},
server: ServerSlug,
roles?: PresentableRole[],
perms: Permissions
}