fix: debug with type error checks

This commit is contained in:
pa
2025-07-16 11:04:54 +09:00
committed by Natsumi
parent 6d693e278c
commit 39381de29e
16 changed files with 188 additions and 105 deletions

View File

@@ -49,7 +49,7 @@ const avatarReq = {
});
},
/**
* @param {{ id: string, releaseStatus?: 'public' | 'private', name?: string, description?: string }} params
* @param {{ id: string, releaseStatus?: 'public' | 'private', name?: string, description?: string,tags?: string[] }} params
* @returns {Promise<{json: any, params}>}
*/
saveAvatar(params) {

View File

@@ -34,12 +34,7 @@ const favoriteReq = {
},
/**
* @param {{
* type: string,
* favoriteId: string (objectId),
* tags: string
* }} params
* @return { Promise<{json: any, params}> }
* @type {import('../types/favorite').addFavorite}
*/
addFavorite(params) {
return request('favorites', {

View File

@@ -75,7 +75,7 @@ const groupReq = {
/**
*
* @param {{ groupId: string }} params
* @return { Promise<{json: any, params}> }
* @return { Promise<{json: any, ref: any, cache?: boolean, params}> }
*/
getCachedGroup(params) {
const groupStore = useGroupStore();

View File

@@ -52,8 +52,7 @@ const instanceReq = {
},
/**
* @param {{ worldId: string, instanceId: string, shortName: string }} instance
* @returns {Promise<{instance, json: T, params: {}}>}
* @type {import('../types/instance').getInstanceShortName}
*/
getInstanceShortName(instance) {
const params = {};

View File

@@ -59,7 +59,8 @@ const miscReq = {
/**
* @param {{
* fileId: string,
* version: number
* version: number,
* variant: string
* }} params
* @return { Promise<{json: any, params}> }
*/

View File

@@ -3,8 +3,7 @@ import { useWorldStore } from '../stores';
const worldReq = {
/**
* @param {{worldId: string}} params
* @returns {Promise<{json: any, params}>}
* @type {import('../types/world').getWorld}
*/
getWorld(params) {
const worldStore = useWorldStore();
@@ -22,7 +21,7 @@ const worldReq = {
/**
* @param {{worldId: string}} params
* @returns {Promise<{json: any, params}>}
* @returns {Promise<{json: any, ref: any, cache?: boolean, params}>}
*/
getCachedWorld(params) {
const worldStore = useWorldStore();