mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
10 lines
368 B
TypeScript
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;
|