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

5 lines
282 B
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import { Cookie, CookieSetOptions } from 'universal-cookie';
export default function useCookies<T extends string, U = {
[K in T]?: any;
}>(dependencies?: T[]): [U, (name: T, value: Cookie, options?: CookieSetOptions) => void, (name: T, options?: CookieSetOptions) => void];