mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 16:13:12 +09:00
Define responses types, DownloadResponse.player_data > playerData
This commit is contained in:
1 parent
29eccb27ed
commit
318a4301c0
3 files changed
+30
-12
No files matched your search
@@ -8,7 +8,7 @@ const jsonPlayerData = Type.Object({
|
||||
name: Type.String(),
|
||||
})
|
||||
|
||||
class AcquireResponse {
|
||||
export class AcquireResponse {
|
||||
constructor(
|
||||
public status: string,
|
||||
public generation?: number,
|
||||
@@ -100,7 +100,7 @@ export class UploadRequest {
|
||||
}
|
||||
}
|
||||
|
||||
class DownloadResponse {
|
||||
export class DownloadResponse {
|
||||
constructor(
|
||||
public playerData: IpcPlayerData | null
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user