GoScrobble/web/node_modules/react-cookie/cjs/withCookies.d.ts

7 lines
374 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
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 {};