mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00
chore: add missing options to HtmxConfig type (#2026)
chore: add missing types to HtmxConfig
This commit is contained in:
parent
555522baaa
commit
264c0f6d63
30
src/htmx.d.ts
vendored
30
src/htmx.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user