mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
Register jQuery with shims
This commit is contained in:
committed by
Franz Liedke
parent
bdd30ceecc
commit
27017b7181
4
js/webpack-config-shims.d.ts
vendored
4
js/webpack-config-shims.d.ts
vendored
@@ -2,16 +2,18 @@ import * as Mithril from 'mithril';
|
||||
import Stream from 'mithril/stream';
|
||||
|
||||
import * as _dayjs from 'dayjs';
|
||||
import * as _$ from 'jquery';
|
||||
|
||||
interface m extends Mithril.Static {
|
||||
prop: typeof Stream;
|
||||
}
|
||||
|
||||
declare global {
|
||||
const $: typeof _$;
|
||||
const m: m;
|
||||
const dayjs: typeof _dayjs;
|
||||
}
|
||||
|
||||
export as namespace Mithril;
|
||||
|
||||
export {};
|
||||
export {};
|
||||
|
Reference in New Issue
Block a user