UNPKG

@tanem/react-nprogress

Version:

A React primitive for building slim progress bars.

8 lines (7 loc) 315 B
import * as React from 'react'; import { Options } from './types'; import { useNProgress } from './useNProgress'; type Outer<P> = P & Options; type Inner<P> = P & ReturnType<typeof useNProgress>; export declare function withNProgress<P>(BaseComponent: React.ComponentType<Inner<P>>): React.FC<Outer<P>>; export {};