mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
694 B
TypeScript
20 lines
694 B
TypeScript
// Type definitions for react-router-hash-link 1.2
|
|
// Project: https://github.com/rafrex/react-router-hash-link
|
|
// Definitions by: Sam Baeck <https://github.com/zoompie>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from 'react';
|
|
import { LinkProps, NavLinkProps } from 'react-router-dom';
|
|
|
|
export interface HashLinkProps extends LinkProps {
|
|
smooth?: boolean;
|
|
scroll?: (element: HTMLElement) => void;
|
|
}
|
|
|
|
export class HashLink extends React.Component<HashLinkProps, any> {}
|
|
|
|
export interface NavHashLinkProps extends NavLinkProps, HashLinkProps {}
|
|
|
|
export class NavHashLink extends React.Component<NavHashLinkProps, any> {}
|