Skip to content

Commit

Permalink
fix: model return type from wa-js interpreted as any
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkedev authored Nov 6, 2024
1 parent 39864c4 commit 9c30eec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/layers/ui.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import { Page } from 'puppeteer';
import { CreateConfig } from '../../config/create-config';
import { evaluateAndReturn } from '../helpers';
import { Wid } from '../model';
import { Wid, Chat } from '../model';
import { GroupLayer } from './group.layer';

export class UILayer extends GroupLayer {
Expand Down Expand Up @@ -68,7 +68,7 @@ export class UILayer extends GroupLayer {
* Return the currently active chat (visually open)
* @category UI
*/
public getActiveChat() {
public getActiveChat(): Chat {
return evaluateAndReturn(this.page, () => WPP.chat.getActiveChat());

Check failure on line 72 in src/api/layers/ui.layer.ts

View workflow job for this annotation

GitHub Actions / lint

Type 'Promise<ChatModel>' is missing the following properties from type 'Chat': id, pendingMsgs, lastReceivedKey, t, and 23 more.

Check failure on line 72 in src/api/layers/ui.layer.ts

View workflow job for this annotation

GitHub Actions / lint

Type 'Promise<ChatModel>' is missing the following properties from type 'Chat': id, pendingMsgs, lastReceivedKey, t, and 23 more.

Check failure on line 72 in src/api/layers/ui.layer.ts

View workflow job for this annotation

GitHub Actions / build

Type 'Promise<ChatModel>' is missing the following properties from type 'Chat': id, pendingMsgs, lastReceivedKey, t, and 23 more.

Check failure on line 72 in src/api/layers/ui.layer.ts

View workflow job for this annotation

GitHub Actions / build

Type 'Promise<ChatModel>' is missing the following properties from type 'Chat': id, pendingMsgs, lastReceivedKey, t, and 23 more.

Check failure on line 72 in src/api/layers/ui.layer.ts

View workflow job for this annotation

GitHub Actions / lint

Type 'Promise<ChatModel>' is missing the following properties from type 'Chat': id, pendingMsgs, lastReceivedKey, t, and 23 more.

Check failure on line 72 in src/api/layers/ui.layer.ts

View workflow job for this annotation

GitHub Actions / lint

Type 'Promise<ChatModel>' is missing the following properties from type 'Chat': id, pendingMsgs, lastReceivedKey, t, and 23 more.

Check failure on line 72 in src/api/layers/ui.layer.ts

View workflow job for this annotation

GitHub Actions / build

Type 'Promise<ChatModel>' is missing the following properties from type 'Chat': id, pendingMsgs, lastReceivedKey, t, and 23 more.

Check failure on line 72 in src/api/layers/ui.layer.ts

View workflow job for this annotation

GitHub Actions / build

Type 'Promise<ChatModel>' is missing the following properties from type 'Chat': id, pendingMsgs, lastReceivedKey, t, and 23 more.
}
}

0 comments on commit 9c30eec

Please sign in to comment.