mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fixed according to PR comments
This commit is contained in:
parent
ddd58d8476
commit
3f4ada9cab
10
types/react-router-native/index.d.ts
vendored
10
types/react-router-native/index.d.ts
vendored
@ -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[];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user