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`)
This commit is contained in:
Gregor
2016-04-23 23:53:25 +09:00
committed by Masahiro Wakame
parent 32f2a3b467
commit 24ea8d373a
+5
View File
@@ -80,3 +80,8 @@ interface HelloJSServiceDef {
}
declare var hello: HelloJSStatic;
// Support AMD require
declare module 'hellojs' {
export = hello;
}