1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Oinktube/node_modules/fetch-cookie/index.d.ts
2022-07-15 11:08:01 -03:00

10 lines
368 B
TypeScript

declare namespace c {
interface CookieJar {
getCookieString(currentUrl: string, cb: (err: any, cookies: string) => void): void;
setCookie(cookieString: string, currentUrl: string, opts: { ignoreError: boolean }, cb: (err: any) => void): void;
}
}
declare function c<T extends Function>(fetch: T, jar?: c.CookieJar, ignoreError?: boolean): T;
export = c;