fix: dialog types error

This commit is contained in:
pa
2025-07-16 14:58:23 +09:00
committed by Natsumi
parent b23687430e
commit 6b84d7444b
17 changed files with 156 additions and 108 deletions

View File

@@ -18,7 +18,7 @@ const favoriteReq = {
},
/**
* @type {import('../types/favorite').getFavorites}
* @type {import('../types/api/favorite').GetFavorites}
*/
getFavorites(params) {
return request('favorites', {
@@ -34,7 +34,7 @@ const favoriteReq = {
},
/**
* @type {import('../types/favorite').addFavorite}
* @type {import('../types/api/favorite').AddFavorite}
*/
addFavorite(params) {
return request('favorites', {
@@ -130,7 +130,7 @@ const favoriteReq = {
},
/**
* @type {import('../types/favorite').getFavoriteWorlds}
* @type {import('../types/api/favorite').GetFavoriteWorlds}
*/
getFavoriteWorlds(params) {
return request('worlds/favorites', {
@@ -146,7 +146,7 @@ const favoriteReq = {
},
/**
* @type {import('../types/favorite').getFavoriteAvatars}
* @type {import('../types/api/favorite').GetFavoriteAvatars}
*/
getFavoriteAvatars(params) {
return request('avatars/favorites', {

View File

@@ -56,7 +56,7 @@ const groupReq = {
});
},
/**
* @type {import('../types/group').getGroup}
* @type {import('../types/api/group').GetGroup}
*/
getGroup(params) {
return request(`groups/${params.groupId}`, {
@@ -302,7 +302,7 @@ const groupReq = {
* groupId: string,
* userId: string
* }} params
* @return { Promise<{json: any, params}> }
* @return { Promise<{json: any, params, ref?: any}> }
*/
getGroupMember(params) {
return request(`groups/${params.groupId}/members/${params.userId}`, {
@@ -557,7 +557,7 @@ const groupReq = {
});
},
/**
* @param {{ groupId: string, eventTypes: array }} params
* @param {{ groupId: string, n: number, offset: number, eventTypes?: array }} params
* @return { Promise<{json: any, params}> }
*/
getGroupLogs(params) {

View File

@@ -84,11 +84,15 @@ const notificationReq = {
/**
* @param {{
* receiverUserId: string,
* type: string,
* message: string,
* seen: boolean,
* details: JsonString<any>
* receiverUserId?: string,
* type?: string,
* message?: string,
* seen?: boolean,
* details?: JsonString<any>,
* instanceId?: string,
* worldId?: string,
* worldName?: string,
* messageSlot?: string,
* }} params
* @param receiverUserId
* @return { Promise<{json: any, params}> }

View File

@@ -77,8 +77,8 @@ const userReq = {
},
/**
* @param {string[]} params User tags to add
* @returns {Promise<{json: any, params: string[]}>}
* @param {{tags: string[]}} params User tags to add
* @returns {Promise<{json: any, params: {tags: string[]}}>}
*/
addUserTags(params) {
const userStore = useUserStore();
@@ -96,8 +96,8 @@ const userReq = {
},
/**
* @param {string[]} params User tags to remove
* @returns {Promise<{json: any, params: string[]}>}
* @param {{tags: string[]}} params User tags to remove
* @returns {Promise<{json: any, params: {tags: string[]}}>}
*/
removeUserTags(params) {
const userStore = useUserStore();