From d615b79a7a304f3a69e40d367c2d6a66cceaaf15 Mon Sep 17 00:00:00 2001 From: Behind The Math Date: Sat, 17 Mar 2018 22:06:39 -0400 Subject: [PATCH] Update TS definitions --- index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index f7e8ccc..ed9b993 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,6 @@ declare class Pjax { + options: Pjax.IOptions; + constructor(options?: Partial); static switches: { @@ -91,7 +93,7 @@ declare class Pjax { * } * */ - [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;