From 74781f59c54c508326de5bd4112d300d46436a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Stroi=C5=84ski?= Date: Fri, 30 May 2014 19:11:11 +0100 Subject: [PATCH] Add defined and specified --- requirejs/require.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/requirejs/require.d.ts b/requirejs/require.d.ts index 6b2cc125f..8623de8d6 100644 --- a/requirejs/require.d.ts +++ b/requirejs/require.d.ts @@ -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