Skip to content

Commit 44381e9

Browse files
committed
chore: fix typings?
1 parent 2717bed commit 44381e9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

extensions/realtime/js/src/@types/shims.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'flarum/common/Application';
2-
import Pusher from 'pusher-js';
3-
import Channel from 'pusher-js';
2+
import Pusher, { Channel } from 'pusher-js';
43

54
declare module 'flarum/common/Application' {
65
export default interface Application {

extensions/realtime/js/src/forum/extend/Application.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { extend } from 'flarum/common/extend';
22
import app from 'flarum/forum/app';
3-
import Pusher from 'pusher-js';
3+
import Pusher, { Channel } from 'pusher-js';
44
import Application from 'flarum/common/Application';
55

66
export default function () {
7-
extend(Application.prototype, 'mount', function () {
7+
extend(Application.prototype, 'mount' as any, function () {
88
// Enable logging to console when debug is enabled.
99
Pusher.logToConsole = this.forum.attribute<boolean>('debug');
1010

0 commit comments

Comments
 (0)