Add defined and specified

This commit is contained in:
Paweł Stroiński
2014-05-30 19:11:11 +01:00
parent 74ba04beb3
commit 74781f59c5
+12
View File
@@ -262,6 +262,18 @@ interface Require {
**/
toUrl(module: string): string;
/**
* Returns true if the module has already been loaded and defined.
* @param module Module to check
**/
defined(module: string): boolean;
/**
* Returns true if the module has already been requested or is in the process of loading and should be available at some point.
* @param module Module to check
**/
specified(module: string): boolean;
/**
* On Error override
* @param err