mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
7 lines
374 B
TypeScript
7 lines
374 B
TypeScript
|
import * as React from 'react';
|
||
|
import { ReactCookieProps } from './types';
|
||
|
declare type Diff<T, U> = T extends U ? never : T;
|
||
|
declare type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>;
|
||
|
export default function withCookies<T extends ReactCookieProps>(WrappedComponent: React.ComponentType<T>): React.ComponentType<Omit<T, keyof ReactCookieProps>>;
|
||
|
export {};
|