From 268ca8a9c2fc110351afe5a4f1463439ba6afc96 Mon Sep 17 00:00:00 2001 From: satoru kimura Date: Thu, 3 Apr 2014 11:40:20 +0900 Subject: [PATCH 1/2] Fixed nomnom.d.ts for TypeScript 1.0.0. --- nomnom/nomnom.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nomnom/nomnom.d.ts b/nomnom/nomnom.d.ts index 2e7259939..d5efd88d5 100644 --- a/nomnom/nomnom.d.ts +++ b/nomnom/nomnom.d.ts @@ -3,7 +3,7 @@ // Definitions by: Paul Vick // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module "nomnom" +declare module nomnom_internal { /** * The command-line parser. @@ -137,7 +137,7 @@ declare module "nomnom" /** * The command-line parser. */ - interface Parser + export interface Parser { /** * Returns the parser. @@ -220,6 +220,9 @@ declare module "nomnom" */ parse(argv?: string[]): any; } +} - export = Parser; +declare var nomnom: nomnom_internal.Parser; +declare module "nomnom" { + export = nomnom; } From 05a7e0f0312d0124cd84255ff05c0058e0fdea58 Mon Sep 17 00:00:00 2001 From: vvakame Date: Thu, 3 Apr 2014 13:29:24 +0900 Subject: [PATCH 2/2] add note and rename variable name. --- nomnom/nomnom.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nomnom/nomnom.d.ts b/nomnom/nomnom.d.ts index d5efd88d5..19ce73c7b 100644 --- a/nomnom/nomnom.d.ts +++ b/nomnom/nomnom.d.ts @@ -3,7 +3,10 @@ // Definitions by: Paul Vick // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module nomnom_internal +// NOTE: Extra identifier's been published is a work-around for the TypeScript 1.0.0. +// original is here -> https://github.com/borisyankov/DefinitelyTyped/commit/9aef1ad84dc006e3d25f5e57709198e33996ba84#diff-0d78c90325d4bfb40327dcc36dcd939a + +declare module NomnomInternal { /** * The command-line parser. @@ -222,7 +225,7 @@ declare module nomnom_internal } } -declare var nomnom: nomnom_internal.Parser; +declare var _nomnom: NomnomInternal.Parser; declare module "nomnom" { - export = nomnom; + export = _nomnom; }