UNPKG

352 BTypeScriptView Raw
1import * as React from 'react';
2import { ReactCookieProps } from './types';
3type Diff<T, U> = T extends U ? never : T;
4type 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 {};