Add types to fetch,toast,bootstrap,svg (#31627)

Reduce `tsc` error count by 53. None of the changes has any runtime
effect.
This commit is contained in:
silverwind
2024-07-26 01:31:24 +02:00
committed by GitHub
parent cabcca3d81
commit 930ca92d7c
6 changed files with 56 additions and 33 deletions

4
types.d.ts vendored
View File

@ -10,6 +10,10 @@ interface Window {
$: typeof import('@types/jquery'),
jQuery: typeof import('@types/jquery'),
htmx: typeof import('htmx.org'),
_globalHandlerErrors: Array<ErrorEvent & PromiseRejectionEvent> & {
_inited: boolean,
push: (e: ErrorEvent & PromiseRejectionEvent) => void | number,
},
}
declare module 'htmx.org/dist/htmx.esm.js' {