Changed typings according to ts handbook templates

This commit is contained in:
Christian Friedow
2018-09-03 09:51:28 +02:00
parent a26d3a1353
commit 97f5931579
+10 -5
View File
@@ -3,13 +3,16 @@
// Definitions by: Christian Friedow <https://github.com/friedow>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface Cookie {
domain: string;
path: string;
key: string;
declare namespace FileCookieStore {
export interface Cookie {
domain: string;
path: string;
key: string;
}
}
export default class FileCookieStore {
declare class FileCookieStore {
idx: {
[domain: string]: {
[path: string]: {
@@ -40,3 +43,5 @@ export default class FileCookieStore {
loadFromFile(filePath: string, cb: (data: any) => void): void;
}
export = FileCookieStore