mirror of
https://github.com/flarum/core.git
synced 2025-08-11 19:04:29 +02:00
Convert to Typescript (#34)
This commit is contained in:
15
extensions/pusher/js/shims.d.ts
vendored
Normal file
15
extensions/pusher/js/shims.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import * as PusherTypes from 'pusher-js';
|
||||
|
||||
declare module 'flarum/forum/ForumApplication' {
|
||||
export default interface ForumApplication {
|
||||
pusher: Promise<{
|
||||
channels: {
|
||||
main: PusherTypes.Channel;
|
||||
user: PusherTypes.Channel | null;
|
||||
};
|
||||
pusher: PusherTypes.default;
|
||||
}>;
|
||||
|
||||
pushedUpdates: Array<any>;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user