UNPKG

@relax.dev/router

Version:
12 lines (11 loc) 593 B
import { ComponentType } from 'react'; import { RouterProps } from './withRouter'; import { RouterGenericBase } from '../entities/Types'; export interface ThrottlingRouterProps<R extends RouterGenericBase = RouterGenericBase> extends RouterProps<R> { onTransitionEnd: () => void; } /** * Смотри описание {@link useThrottlingLocation} * @param Component */ export declare function withThrottlingRouter<T extends ThrottlingRouterProps<R>, R extends RouterGenericBase = RouterGenericBase>(Component: ComponentType<T>): ComponentType<Omit<T, keyof ThrottlingRouterProps<R>>>;