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