From 7ed01f2c4fbdbae3fd3faaf6ec6f54c77b23e473 Mon Sep 17 00:00:00 2001 From: Chris Gervang Date: Tue, 9 Aug 2016 17:44:38 -0700 Subject: [PATCH] Adding the missing func page.replace() to type def According to the source code, this replace function exists but it is missing from our type definition. Please promptly merge. I've tested this on my local machine. https://github.com/visionmedia/page.js/blob/master/page.js#L272 --- page/page.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/page/page.d.ts b/page/page.d.ts index dd76823ecf..682322f3fa 100644 --- a/page/page.d.ts +++ b/page/page.d.ts @@ -86,6 +86,11 @@ declare namespace PageJS { * */ redirect(page: string): void; + /** + * Replace `path` with optional `state` object. + * + */ + replace(path: string, state?: any, init?: boolean, dispatch?: boolean): Context; /** * Navigate to the given path. *