mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-28 08:24:32 +00:00
Move modules into separate files
This commit is contained in:
42
github-electron/github-electron.session.d.ts
vendored
Normal file
42
github-electron/github-electron.session.d.ts
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
// Type definitions for Electron v0.37.2
|
||||
// Project: http://electron.atom.io/
|
||||
// Definitions by: jedmao <https://github.com/jedmao/>, rhysd <https://rhysd.github.io>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace Electron {
|
||||
|
||||
class Session {
|
||||
static fromPartition(partition: string): Session;
|
||||
static defaultSession: Session;
|
||||
|
||||
cookies: any;
|
||||
clearCache(callback: Function): void;
|
||||
clearStorageData(callback: Function): void;
|
||||
clearStorageData(options: ClearStorageDataOptions, callback: Function): void;
|
||||
flushStorageData(): void;
|
||||
setProxy(config: string, callback: Function): void;
|
||||
resolveProxy(url: URL, callback: (proxy: any) => any): void;
|
||||
setDownloadPath(path: string): void;
|
||||
enableNetworkEmulation(options: NetworkEmulationOptions): void;
|
||||
disableNetworkEmulation(): void;
|
||||
setCertificateVerifyProc(proc: CertificateVerifyProc): void;
|
||||
webRequest: any;
|
||||
}
|
||||
|
||||
interface ClearStorageDataOptions {
|
||||
origin?: string;
|
||||
storages?: string[];
|
||||
quotas?: string[];
|
||||
}
|
||||
|
||||
interface NetworkEmulationOptions {
|
||||
offline?: boolean;
|
||||
latency?: number;
|
||||
downloadThroughput?: number;
|
||||
uploadThroughput?: number;
|
||||
}
|
||||
|
||||
interface CertificateVerifyProc {
|
||||
(hostname: string, cert: any, callback: (accepted: boolean) => any): any;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user