DefinitelyTyped/react-router
François Guillot 1737fbff88 Typing Location.Query to K,V dictionary (#9524)
* Typing Location.Query to K,V dictionary

Location.Query is actually typed as 'Object', which forces to cast it to 'any' anytime you need to access one of your own query string parameter.

    const clientId = (this.props.location.query as any).clientId;

It should be typed as '{ [key: string]: string; }' since it's a dictionary where you can get your arbitrary named query string parameters.

* Fixing travis build
2016-06-03 00:49:05 +09:00
..
history-tests.ts Update history to v2.0.0 and add tests. 2016-02-25 16:14:09 -07:00
history.d.ts Typing Location.Query to K,V dictionary (#9524) 2016-06-03 00:49:05 +09:00
react-router-0.13.3.d.ts Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
react-router-1.0.0.d.ts replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
react-router-tests.tsx Add createMemoryHistory to react-router. (#8728) 2016-04-23 15:19:41 +09:00
react-router.d.ts update react-router.d.ts (#9066) 2016-05-02 00:55:36 +09:00