[history] Mark Location's key as optional (#20447)

While the `key` will always be a string value after updating history, it will not be present when the `history` object is first created, at least until the first push/replace state happens.
This commit is contained in:
Diogo Franco
2017-10-17 03:43:19 +09:00
committed by Andy
parent 9c1dc77ef4
commit 7d955710bb

View File

@@ -28,7 +28,7 @@ export interface Location {
search: Search;
state: LocationState;
hash: Hash;
key: LocationKey;
key?: LocationKey;
}
export interface LocationDescriptorObject {