1.4.9 • Published 6 months ago
@types/redux-first-router-link v1.4.9
Installation
npm install --save @types/redux-first-router-link
Summary
This package contains type definitions for redux-first-router-link (https://github.com/faceyspacey/redux-first-router-link#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-first-router-link.
index.d.ts
// Type definitions for redux-first-router-link 1.4
// Project: https://github.com/faceyspacey/redux-first-router-link#readme
// Definitions by: janb87 <https://github.com/janb87>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
import { Location } from 'redux-first-router';
export type To = string | string[] | object;
export interface Match<P> {
params: P;
isExact: boolean;
path: string;
url: string;
}
// Unfortunately we can't pass `HTMLAnchorElement` since the `tagName` attribute allows you to use other tags than anchor.
export interface LinkProps extends React.HTMLAttributes<HTMLElement> {
to: To;
redirect?: boolean | undefined;
replace?: boolean | undefined;
tagName?: string | undefined;
down?: boolean | undefined;
shouldDispatch?: boolean | undefined;
target?: string | undefined;
}
export default class Link extends React.Component<LinkProps> {}
export interface NavLinkProps extends LinkProps {
activeClassName?: string | undefined;
activeStyle?: React.CSSProperties | undefined;
ariaCurrent?: string | undefined;
exact?: boolean | undefined;
strict?: boolean | undefined;
isActive?(match: Match<object>, location: Location): boolean;
}
export class NavLink extends React.Component<NavLinkProps> {}
Additional Details
- Last updated: Thu, 08 Jul 2021 22:41:51 GMT
- Dependencies: @types/react, @types/redux-first-router
- Global values: none
Credits
These definitions were written by janb87.