From b2286eb5f91aaf0a29ae11dfd153158b6662e93a Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Sat, 14 May 2016 18:17:57 +0200 Subject: [PATCH] Added declaration of module 'mathjs' (#9294) Mathjs can now be correctly used in nodejs, importing it in typescript with `import * as mathjs from 'mathjs';` --- mathjs/mathjs.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mathjs/mathjs.d.ts b/mathjs/mathjs.d.ts index e9c15e1817..f21c192bb9 100644 --- a/mathjs/mathjs.d.ts +++ b/mathjs/mathjs.d.ts @@ -2208,3 +2208,8 @@ declare namespace mathjs { toString(): string; } } + +declare module 'mathjs'{ + export = math; +} +