@tanem/react-nprogress
Version:
A React primitive for building slim progress bars.
8 lines (7 loc) • 324 B
TypeScript
import type { ComponentType, FC } from 'react';
import type { 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: ComponentType<Inner<P>>): FC<Outer<P>>;
export {};