From 3f4ada9cab39b6dff852fcd0c072fbdcbdfdcdc2 Mon Sep 17 00:00:00 2001 From: Almir Kadric Date: Fri, 2 Mar 2018 10:49:46 +0900 Subject: [PATCH] fixed according to PR comments --- types/react-router-native/index.d.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/types/react-router-native/index.d.ts b/types/react-router-native/index.d.ts index 600ac53ce9..b98759edf8 100644 --- a/types/react-router-native/index.d.ts +++ b/types/react-router-native/index.d.ts @@ -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 {} +export class Link extends React.Component {} export interface NativeRouterProps { initialEntries?: string[];