From 54c77e47cb51d500ee1ce1bdf429afd970b17cfe Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 20 Jun 2018 19:37:49 +0200 Subject: [PATCH] Rework the export-syntax of the mustache-typings --- types/mustache/index.d.ts | 6 ++---- types/node-vault/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/types/mustache/index.d.ts b/types/mustache/index.d.ts index 45467c3940..2b0ab91cd0 100644 --- a/types/mustache/index.d.ts +++ b/types/mustache/index.d.ts @@ -243,7 +243,5 @@ declare class MustacheWriter { * Provides the functionality to render templates with `{{mustaches}}`. */ declare var Mustache: MustacheStatic; - -declare module "mustache" { - export = Mustache; -} +export = Mustache; +export as namespace Mustache; diff --git a/types/node-vault/index.d.ts b/types/node-vault/index.d.ts index 835e364ae7..f21d625822 100644 --- a/types/node-vault/index.d.ts +++ b/types/node-vault/index.d.ts @@ -111,7 +111,7 @@ declare namespace NodeVault { debug?(...args: any[]): any; tv4?(...args: any[]): any; commands?: Array<{ method: string, path: string, scheme: any }>; - mustache?: MustacheStatic; + mustache?: typeof mustache; "request-promise"?: any; Promise?: PromiseConstructor;