mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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
|
||
|---|---|---|
| .. | ||
| history-tests.ts | ||
| history.d.ts | ||
| react-router-0.13.3.d.ts | ||
| react-router-1.0.0.d.ts | ||
| react-router-tests.tsx | ||
| react-router.d.ts | ||