Skip to content

Commit

Permalink
feat(client): remove events
Browse files Browse the repository at this point in the history
  • Loading branch information
piloking committed Jan 19, 2025
1 parent 7b49c69 commit fa604c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/linejs/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Client {
/**
* Fetches all chat rooms the user joined.
*/
async fetchJoinedChats() {
async fetchJoinedChats(): Promise<Chat[]> {
const joined = await this.base.talk.getAllChatMids({
request: {
withMemberChats: true,
Expand Down Expand Up @@ -126,7 +126,7 @@ export class Client {
* @param mid User mid
* @returns User
*/
async fetchUser(mid: string) {
async fetchUser(mid: string): Promise<User> {
const res = await this.base.relation.getContactsV3({
mids: [mid],
});
Expand Down

0 comments on commit fa604c9

Please sign in to comment.