From 97f59315796971dfd4ff7c460832c07d5eb31620 Mon Sep 17 00:00:00 2001 From: Christian Friedow Date: Mon, 3 Sep 2018 09:51:28 +0200 Subject: [PATCH] Changed typings according to ts handbook templates --- types/tough-cookie-filestore/index.d.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/types/tough-cookie-filestore/index.d.ts b/types/tough-cookie-filestore/index.d.ts index 1b0c68d820..cfa9ee796b 100644 --- a/types/tough-cookie-filestore/index.d.ts +++ b/types/tough-cookie-filestore/index.d.ts @@ -3,13 +3,16 @@ // Definitions by: Christian 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