Fix #4620: Add module declaration for 'module' magic module

This commit is contained in:
Kenneth G. Franqueiro
2015-06-14 01:22:13 -04:00
parent 8005e28392
commit 9b073d0f81
2 changed files with 18 additions and 1 deletions
+10 -1
View File
@@ -29,6 +29,15 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
declare module 'module' {
var mod: {
config: () => any;
id: string;
uri: string;
}
export = mod;
}
interface RequireError extends Error {
/**
@@ -342,7 +351,7 @@ interface RequireDefine {
* callback return module definition
**/
(name: string, ready: Function): void;
/**
* Used to allow a clear indicator that a global define function (as needed for script src browser loading) conforms
* to the AMD API, any global define function SHOULD have a property called "amd" whose value is an object.