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
This commit is contained in:
Chris Gervang
2016-08-09 17:44:38 -07:00
committed by GitHub
parent 5ff2770b38
commit 7ed01f2c4f

5
page/page.d.ts vendored
View File

@@ -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.
*