<commit_before>// Type definitions for React Router 4.0
// Project: https://github.com/ReactTraining/react-router
// Definitions by: <NAME> <https://github.com/tkrotoff>
//                 <NAME> <https://github.com/huy-nguyen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

declare module 'react-router-dom' {
  import {
    Prompt,
    MemoryRouter,
    Redirect,
    RouteComponentProps,
    RouteProps,
    Route,
    Router,
    StaticRouter,
    Switch,
    match,
    matchPath,
    withRouter,
    RouterChildContext
  } from 'react-router';
  import * as React from 'react';
  import * as H from 'history';

  interface BrowserRouterProps {
    basename?: string;
    getUserConfirmation?(): void;
    forceRefresh?: boolean;
    keyLength?: number;
  }
  class BrowserRouter extends React.Component<BrowserRouterProps> {}

  interface HashRouterProps {
    basename?: string;
    getUserConfirmation?(): void;
    hashType?: 'slash' | 'noslash' | 'hashbang';
  }
  class HashRouter extends React.Component<HashRouterProps> {}

  interface LinkProps extends React.HTMLAttributes<HTMLAnchorElement> {
    to: H.LocationDescriptor;
    replace?: boolean;
  }
  class Link extends React.Component<LinkProps> {}

  interface NavLinkProps extends LinkProps {
    activeClassName?: string;
    activeStyle?: React.CSSProperties;
    exact?: boolean;
    strict?: boolean;
    isActive?<P>(match: match<P>, location: H.Location): boolean;
  }
  class NavLink extends React.Component<NavLinkProps> {}

  export {
    BrowserRouter,
    HashRouter,
    LinkProps, // TypeScript specific, not from React Router itself
    NavLinkProps, // TypeScript specific, not from React Router itself
    Link,
    NavLink,
    Prompt,
    MemoryRouter,<commit_msg>Expose `BrowserRouterProps` and `HashRouterProps` interface.<commit_after>// Type definitions for React Router 4.0
// Project: https://github.com/ReactTraining/react-router
// Definitions by: <NAME> <https://github.com/tkrotoff>
//                 <NAME> <https://github.com/huy-nguyen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

declare module 'react-router-dom' {
  import {
    Prompt,
    MemoryRouter,
    Redirect,
    RouteComponentProps,
    RouteProps,
    Route,
    Router,
    StaticRouter,
    Switch,
    match,
    matchPath,
    withRouter,
    RouterChildContext
  } from 'react-router';
  import * as React from 'react';
  import * as H from 'history';

  interface BrowserRouterProps {
    basename?: string;
    getUserConfirmation?(): void;
    forceRefresh?: boolean;
    keyLength?: number;
  }
  class BrowserRouter extends React.Component<BrowserRouterProps> {}

  interface HashRouterProps {
    basename?: string;
    getUserConfirmation?(): void;
    hashType?: 'slash' | 'noslash' | 'hashbang';
  }
  class HashRouter extends React.Component<HashRouterProps> {}

  interface LinkProps extends React.HTMLAttributes<HTMLAnchorElement> {
    to: H.LocationDescriptor;
    replace?: boolean;
  }
  class Link extends React.Component<LinkProps> {}

  interface NavLinkProps extends LinkProps {
    activeClassName?: string;
    activeStyle?: React.CSSProperties;
    exact?: boolean;
    strict?: boolean;
    isActive?<P>(match: match<P>, location: H.Location): boolean;
  }
  class NavLink extends React.Component<NavLinkProps> {}

  export {
    BrowserRouter,
    BrowserRouterProps,
    HashRouter,
    HashRouterProps,
    LinkProps, // TypeScript specific, not from React Router itself
    NavLinkProps, // TypeScript specific, not from React Router itself
    Link,
    NavLink,
    Prompt,
    MemoryRouter,
{'fraction_non_alphanumeric': 0.10752979414951246, 'fraction_numerical': 0.0021668472372697724, 'mean_word_length': 3.4817961165048543, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6324643', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1065, 'n_words': 271}