@nextcloud/vue
Version:
Nextcloud vue components
30 lines (29 loc) • 810 B
TypeScript
declare namespace _default {
function data(): {
hasStatus: boolean;
userStatus: {
status: null;
message: null;
icon: null;
};
};
namespace methods {
/**
* Fetches the user-status from the server
*
* @param {string} userId UserId of the user to fetch the status for
*
* @return {Promise<void>}
*/
function fetchUserStatus(userId: string): Promise<void>;
/**
* Sets the user status
*
* @param {string} status user's status
* @param {string} message user's message
* @param {string} icon user's icon
*/
function setUserStatus({ status, message, icon }: string): void;
}
}
export default _default;