From 264c0f6d63fb14c4f40afc7e0c2bfeeff602d8af Mon Sep 17 00:00:00 2001 From: JA <24870903+jonathonadams@users.noreply.github.com> Date: Sat, 25 Nov 2023 02:55:34 +1030 Subject: [PATCH] chore: add missing options to HtmxConfig type (#2026) chore: add missing types to HtmxConfig --- src/htmx.d.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/htmx.d.ts b/src/htmx.d.ts index 6200cd3f..c7958fd4 100644 --- a/src/htmx.d.ts +++ b/src/htmx.d.ts @@ -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; } /**