UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

90 lines (82 loc) 3.09 kB
// Type definitions for React Router 5.1 // Project: https://github.com/ReactTraining/react-router // Definitions by: Huy Nguyen <https://github.com/huy-nguyen> // Philip Jackson <https://github.com/p-jackson> // John Reilly <https://github.com/johnnyreilly> // Sebastian Silbermann <https://github.com/eps1lon> // Daniel Nixon <https://github.com/danielnixon> // Tony Ward <https://github.com/ynotdraw> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.1 import { match } from 'react-router'; import * as React from 'react'; import * as H from 'history'; export { generatePath, PromptProps, Prompt, MemoryRouterProps, MemoryRouter, RedirectProps, Redirect, RouteChildrenProps, RouteComponentProps, RouteProps, Route, RouterProps, Router, StaticRouterProps, StaticRouter, SwitchProps, Switch, match, matchPath, withRouter, RouterChildContext, useHistory, useLocation, useParams, useRouteMatch, } from 'react-router'; export interface BrowserRouterProps { basename?: string; getUserConfirmation?: (message: string, callback: (ok: boolean) => void) => void; forceRefresh?: boolean; keyLength?: number; } export class BrowserRouter extends React.Component<BrowserRouterProps, any> {} export interface HashRouterProps { basename?: string; getUserConfirmation?: (message: string, callback: (ok: boolean) => void) => void; hashType?: 'slash' | 'noslash' | 'hashbang'; } export class HashRouter extends React.Component<HashRouterProps, any> {} export interface LinkProps<S = H.LocationState> extends React.AnchorHTMLAttributes<HTMLAnchorElement> { component?: React.ComponentType<any>; to: H.LocationDescriptor<S> | ((location: H.Location<S>) => H.LocationDescriptor<S>); replace?: boolean; innerRef?: React.Ref<HTMLAnchorElement>; } export function Link<S = H.LocationState>( ...params: Parameters<Link<S>> ): ReturnType<Link<S>>; export interface Link<S = H.LocationState> extends React.ForwardRefExoticComponent< React.PropsWithoutRef<LinkProps<S>> & React.RefAttributes<HTMLAnchorElement> > {} export interface NavLinkProps<S = H.LocationState> extends LinkProps<S> { activeClassName?: string; activeStyle?: React.CSSProperties; exact?: boolean; strict?: boolean; isActive?<Params extends { [K in keyof Params]?: string }>(match: match<Params> | null, location: H.Location<S>): boolean; location?: H.Location<S>; } export function NavLink<S = H.LocationState>( // TODO: Define this as ...params: Parameters<NavLink<S>> when only TypeScript >= 3.1 support is needed. props: React.PropsWithoutRef<NavLinkProps<S>> & React.RefAttributes<HTMLAnchorElement>, ): ReturnType<NavLink<S>>; export interface NavLink<S = H.LocationState> extends React.ForwardRefExoticComponent< React.PropsWithoutRef<NavLinkProps<S>> & React.RefAttributes<HTMLAnchorElement> > {}