mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Merge pull request #17832 from minyeong981/ui/typings-global-jquery-moment
refactor(ui): Remove explicit any from globals
This commit is contained in:
commit
304dcdf695
2 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import jquery from 'jquery';
|
||||
import moment from 'moment';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(window as any).jQuery = jquery;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(window as any).moment = require('moment');
|
||||
window.jQuery = jquery;
|
||||
window.moment = moment;
|
||||
|
|
|
|||
5
web/ui/react-app/src/types/index.d.ts
vendored
5
web/ui/react-app/src/types/index.d.ts
vendored
|
|
@ -68,3 +68,8 @@ interface JQueryStatic {
|
|||
scale: () => Color;
|
||||
};
|
||||
}
|
||||
|
||||
interface Window {
|
||||
jQuery: JQueryStatic;
|
||||
moment: typeof import('moment');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue