mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
added missing properties to NativeRouter and fixed Link component type
This commit is contained in:
Vendored
+3
-1
@@ -31,7 +31,7 @@ export class AndroidBackButton extends React.Component<AndroidBackButtonProps> {
|
||||
export class DeepLinking extends React.Component {}
|
||||
|
||||
export interface LinkProps {
|
||||
component?: React.Component;
|
||||
component?: React.Component | React.ComponentClass;
|
||||
replace?: boolean;
|
||||
style?: any;
|
||||
to: H.LocationDescriptor;
|
||||
@@ -40,6 +40,8 @@ export interface LinkProps {
|
||||
export class Link extends React.Component<LinkProps> {}
|
||||
|
||||
export interface NativeRouterProps {
|
||||
initialEntries?: string[];
|
||||
initialIndex?: number;
|
||||
getUserConfirmation?: Function;
|
||||
keyLength?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user