File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
extensions/realtime/js/src Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import 'flarum/common/Application' ;
2- import Pusher from 'pusher-js' ;
3- import Channel from 'pusher-js' ;
2+ import Pusher , { Channel } from 'pusher-js' ;
43
54declare module 'flarum/common/Application' {
65 export default interface Application {
Original file line number Diff line number Diff line change 11import { extend } from 'flarum/common/extend' ;
22import app from 'flarum/forum/app' ;
3- import Pusher from 'pusher-js' ;
3+ import Pusher , { Channel } from 'pusher-js' ;
44import Application from 'flarum/common/Application' ;
55
66export 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
You can’t perform that action at this time.
0 commit comments