Skip to content

Commit

Permalink
Add new config options to typescript defs
Browse files Browse the repository at this point in the history
Fixed version of #1936
  • Loading branch information
alexpetros committed Nov 6, 2023
1 parent 2c2bf56 commit 013fbe0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/htmx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export interface HtmxConfig {
requestClass?: "htmx-request" | string;
/**
* The class to temporarily place on elements that htmx has added to the DOM.
* @default "htmx-added"
* @default "htmx-added"
*/
addedClass?: "htmx-added" | string;
/**
Expand Down Expand Up @@ -385,6 +385,16 @@ export interface HtmxConfig {
disableSelector?: "[hx-disable], [data-hx-disable]" | string;
/** @default "smooth" */
scrollBehavior?: "smooth" | "auto";
/**
* If set to false, disables the interpretation of script tags.
* @default true
*/
allowScriptTags?: boolean;
/**
* If set to true, disables htmx-based requests to non-origin hosts.
* @default false
*/
selfRequestsOnly?: boolean;
}

/**
Expand Down

0 comments on commit 013fbe0

Please sign in to comment.