mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 23:33:50 +02:00
fix: debug with type error checks
This commit is contained in:
38
src/types/api/world.d.ts
vendored
38
src/types/api/world.d.ts
vendored
@@ -46,6 +46,27 @@ export type GetWorlds = (
|
||||
option?: string;
|
||||
}>;
|
||||
|
||||
export type SaveWorld = (params: {
|
||||
id: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
capacity?: number;
|
||||
recommendedCapacity?: number;
|
||||
previewYoutubeId?: string;
|
||||
urlList?: string[];
|
||||
tags?: string[];
|
||||
}) => Promise<{
|
||||
json: SaveWorldResponse;
|
||||
params: {
|
||||
id: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
capacity?: number;
|
||||
recommendedCapacity?: number;
|
||||
previewYoutubeId?: string;
|
||||
};
|
||||
}>;
|
||||
|
||||
// Type aliases
|
||||
type WorldSearchResponse = WorldSearchResponseItem[];
|
||||
|
||||
@@ -67,3 +88,20 @@ interface GetWorldResponse extends BaseWorld {
|
||||
version: number;
|
||||
visits: number;
|
||||
}
|
||||
|
||||
interface SaveWorldResponse extends BaseWorld {
|
||||
description: string;
|
||||
featured: boolean;
|
||||
pendingUpload: boolean;
|
||||
tags: string[];
|
||||
thumbnailImageUrl: string;
|
||||
imageUrl: string;
|
||||
name: string;
|
||||
authorId: string;
|
||||
authorName: string;
|
||||
id: string;
|
||||
updated_at: string;
|
||||
urlList: string[];
|
||||
version: number;
|
||||
visits: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user