mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +09:00
Port message types to TypeScript
This commit is contained in:
1 parent
15ea9a91dc
commit
2a52a82fb7
31 files changed
+2846
-4124
No files matched your search
@@ -17,19 +17,11 @@ export * from "./version";
|
||||
|
||||
// TODO: Remove/migrate after lib/data is migrated to ts
|
||||
import type { User } from "../users";
|
||||
export type AddressType = "controller" | "host" | "instance" | "control" | "broadcast";
|
||||
export interface Serialisable {
|
||||
jsonSchema: object,
|
||||
fromJSON(json: any): object,
|
||||
}
|
||||
|
||||
import type { Address } from "./messages_core";
|
||||
export type AddressShorthand =
|
||||
| "controller"
|
||||
| { instanceId: number }
|
||||
| { hostId: number }
|
||||
| { controlId: number }
|
||||
| Address
|
||||
import { AddressType } from "./messages_core";
|
||||
|
||||
export class Request {
|
||||
static type: "request";
|
||||
|
||||
Reference in new issue
Block a user