chore: add missing options to HtmxConfig type (#2026)

chore: add missing types to HtmxConfig
This commit is contained in:
JA 2023-11-25 02:55:34 +10:30 committed by GitHub
parent 555522baaa
commit 264c0f6d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

30
src/htmx.d.ts vendored
View File

@ -400,6 +400,36 @@ export interface HtmxConfig {
* @default true
*/
scrollIntoViewOnBoost?: boolean;
/**
* If set, the nonce will be added to inline scripts.
* @default ''
*/
inlineScriptNonce?: string;
/**
* The type of binary data being received over the WebSocket connection
* @default blob
*/
wsBinaryType?: Blob;
/**
* If set to true htmx will include a cache-busting parameter in GET requests to avoid caching partial responses by the browser
* @default false
*/
getCacheBusterParam?: boolean;
/**
* If set to true, htmx will use the View Transition API when swapping in new content.
* @default false
*/
globalViewTransitions?: boolean;
/**
* htmx will format requests with these methods by encoding their parameters in the URL, not the request body
* @default ["get"]
*/
methodsThatUseUrlParams?: string[];
/**
* If set to true htmx will not update the title of the document when a title tag is found in new content
* @default false
*/
ignoreTitle:? boolean;
}
/**