mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
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:
Vendored
+5
@@ -80,3 +80,8 @@ interface HelloJSServiceDef {
|
||||
}
|
||||
|
||||
declare var hello: HelloJSStatic;
|
||||
|
||||
// Support AMD require
|
||||
declare module 'hellojs' {
|
||||
export = hello;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user