mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
5 lines
282 B
TypeScript
5 lines
282 B
TypeScript
|
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];
|