fixed according to PR comments

This commit is contained in:
Almir Kadric 2018-03-02 10:49:46 +09:00
parent ddd58d8476
commit 3f4ada9cab

View File

@ -35,16 +35,10 @@ export interface LinkProps {
replace?: boolean;
style?: any;
to: H.LocationDescriptor;
[propName: string]: any;
}
/**
* Disable the "no-any-union" rule here as the Link component can accept any property.
* It will feed them to the given component. However if we just use any we will lose
* autocomplete on known properties. So it is better to disable this rule in this one
* instance.
*/
// tslint:disable-next-line:no-any-union
export class Link extends React.Component<LinkProps | any> {}
export class Link extends React.Component<LinkProps> {}
export interface NativeRouterProps {
initialEntries?: string[];