1
0
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:
Rafał Całka
2021-12-12 20:42:37 +01:00
committed by GitHub
parent 06fe9ee2ef
commit 0ef2b3e249
9 changed files with 1339 additions and 1154 deletions

15
extensions/pusher/js/shims.d.ts vendored Normal file
View 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>;
}
}