From 14bad962eb7fd6a28602294957e9ccd9a7c8506d Mon Sep 17 00:00:00 2001 From: megaboich Date: Mon, 24 Apr 2017 20:36:49 +0200 Subject: [PATCH] Updated Typescript definitions (#29) --- pofile.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pofile.d.ts b/pofile.d.ts index 0f291cc..0438cf2 100644 --- a/pofile.d.ts +++ b/pofile.d.ts @@ -1,8 +1,8 @@ -declare module "pofile" { - class PO { - public static parse(data: string): PO; - public static load(fileName: string, callback: (err: NodeJS.ErrnoException | null, po: PO) => void): void; +declare module pofile { + function parse(data: string): PO; + function load(fileName: string, callback: (err: NodeJS.ErrnoException | null, po: PO) => void): void; + class PO { public comments: string[]; public extractedComments: string[]; public items: Item[]; @@ -39,6 +39,6 @@ declare module "pofile" { public toString(): string; } - - export = PO; } + +export = pofile