UNPKG

374 BTypeScriptView Raw
1import * as React from 'react';
2import { ReactCookieProps } from './types';
3declare type Diff<T, U> = T extends U ? never : T;
4declare type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>;
5export default function withCookies<T extends ReactCookieProps>(WrappedComponent: React.ComponentType<T>): React.ComponentType<Omit<T, keyof ReactCookieProps>>;
6export {};