Add types for js globals (#31586)
Adds types for `window.config` and jQuery/htmx globals, eliminating 48 `tsc` errors.
This commit is contained in:
parent
1b0ccf4bea
commit
228c354b16
4 changed files with 48 additions and 4 deletions
|
@ -4,8 +4,8 @@ import {showErrorToast} from './modules/toast.ts';
|
|||
import 'idiomorph/dist/idiomorph-ext.js';
|
||||
|
||||
// https://htmx.org/reference/#config
|
||||
htmx.config.requestClass = 'is-loading';
|
||||
htmx.config.scrollIntoViewOnBoost = false;
|
||||
window.htmx.config.requestClass = 'is-loading';
|
||||
window.htmx.config.scrollIntoViewOnBoost = false;
|
||||
|
||||
// https://htmx.org/events/#htmx:sendError
|
||||
document.body.addEventListener('htmx:sendError', (event) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue