From 24ea8d373a92addab4bdb0b294b107188e9dc4b8 Mon Sep 17 00:00:00 2001 From: Gregor Date: Sat, 23 Apr 2016 16:53:25 +0200 Subject: [PATCH] Update hellojs.d.ts (#8304) This update will also give you the ability to use import/require imports in your projects like this: `import * as hello from 'hellojs';` or `import hello = require('hellojs');` Otherwise, TS will always say module 'hellojs' is undefined (if included as `import 'hellojs`) --- hellojs/hellojs.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hellojs/hellojs.d.ts b/hellojs/hellojs.d.ts index 6da9f9ca0b..686d5c1adf 100644 --- a/hellojs/hellojs.d.ts +++ b/hellojs/hellojs.d.ts @@ -80,3 +80,8 @@ interface HelloJSServiceDef { } declare var hello: HelloJSStatic; + +// Support AMD require +declare module 'hellojs' { + export = hello; +}