Declare a module instead of a namespace

This commit is contained in:
Manuel Thalmann
2018-06-20 08:15:31 +02:00
parent b55473c423
commit a8e4d65b92
+4 -2
View File
@@ -243,5 +243,7 @@ declare class MustacheWriter {
* Provides the functionality to render templates with `{{mustaches}}`.
*/
declare var Mustache: MustacheStatic;
export = Mustache;
export as namespace Mustache;
declare module "mustache" {
export = Mustache;
}