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