correct flow types

Summary:
The function should have optional arguments, but not nullable types.
Closes https://github.com/facebook/react-native/pull/7580

Differential Revision: D3304994

Pulled By: davidaurelio

fbshipit-source-id: 9918817429126ea16dd3076b61a3493c3a3a8388
This commit is contained in:
Naman Goel 2016-05-16 07:47:56 -07:00 committed by Facebook Github Bot 4
parent f13322c820
commit 1673e00e2b
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class RouteStack {
return this._routeNodes.findIndex(finder, this);
}
slice(begin: ?number, end: ?number): RouteStack {
slice(begin?: number, end?: number): RouteStack {
var routeNodes = this._routeNodes.slice(begin, end);
var index = Math.min(this._index, routeNodes.size - 1);
return this._update(index, routeNodes);