From fefbdb347b47245ccd609cc998964e2e805b0c84 Mon Sep 17 00:00:00 2001 From: delphinus Date: Sun, 6 Mar 2016 11:53:09 +0900 Subject: [PATCH] Add docs for the factory --- jquery-easy-loading/jquery-easy-loading.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jquery-easy-loading/jquery-easy-loading.d.ts b/jquery-easy-loading/jquery-easy-loading.d.ts index c20792eb86..9abf00bd91 100644 --- a/jquery-easy-loading/jquery-easy-loading.d.ts +++ b/jquery-easy-loading/jquery-easy-loading.d.ts @@ -195,5 +195,14 @@ declare var factory: (root?: any, jQuery?: JQueryStatic) => JQueryStatic; declare module "jquery-easy-loading" { + /** + * The package `jquery-easy-loading` would return a factory for the library + * itself if you use this not in the browser env. + * + *
+     * import * as factory from "jquery-easy-loading";
+     * const $: JQueryStatic = factory(window);
+     * 
+ */ export = factory; }