mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
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:
5
page/page.d.ts
vendored
5
page/page.d.ts
vendored
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user