mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 06:13:52 +02:00
fix: debug with type error checks
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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', {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
@@ -59,7 +59,8 @@ const miscReq = {
|
||||
/**
|
||||
* @param {{
|
||||
* fileId: string,
|
||||
* version: number
|
||||
* version: number,
|
||||
* variant: string
|
||||
* }} params
|
||||
* @return { Promise<{json: any, params}> }
|
||||
*/
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user