mirror of
https://github.com/go-gitea/gitea
synced 2024-12-24 19:44:48 +01:00
228c354b16
Adds types for `window.config` and jQuery/htmx globals, eliminating 48 `tsc` errors.
18 lines
420 B
TypeScript
18 lines
420 B
TypeScript
declare module '*.svg' {
|
|
const value: string;
|
|
export default value;
|
|
}
|
|
|
|
declare let __webpack_public_path__: string;
|
|
|
|
interface Window {
|
|
config: import('./web_src/js/types.ts').Config;
|
|
$: typeof import('@types/jquery'),
|
|
jQuery: typeof import('@types/jquery'),
|
|
htmx: typeof import('htmx.org'),
|
|
}
|
|
|
|
declare module 'htmx.org/dist/htmx.esm.js' {
|
|
const value = await import('htmx.org');
|
|
export default value;
|
|
}
|