Add replaceNode switch #141

Merged
BehindTheMath merged 3 commits from feature/add-replace-node-switch into master 2018-03-20 09:52:56 -05:00
Showing only changes of commit d615b79a7a - Show all commits

7
index.d.ts vendored
View File

@@ -1,4 +1,6 @@
declare class Pjax { declare class Pjax {
options: Pjax.IOptions;
constructor(options?: Partial<Pjax.IOptions>); constructor(options?: Partial<Pjax.IOptions>);
static switches: { static switches: {
@@ -91,7 +93,7 @@ declare class Pjax {
* } * }
* </pre> * </pre>
*/ */
[key: string]: Function; [key: string]: Function | Pjax.IOptions;
} }
declare namespace Pjax { declare namespace Pjax {
@@ -180,7 +182,8 @@ type ElementFunction = (el: Element) => void;
declare enum DefaultSwitches { declare enum DefaultSwitches {
innerHTML = "innerHTML", innerHTML = "innerHTML",
ouetrHTML = "outerHTML", ouetrHTML = "outerHTML",
sideBySide = "sideBySide" sideBySide = "sideBySide",
replaceNode = "replaceNode"
} }
export = Pjax; export = Pjax;