Merge pull request #6052 from lefb766/master

Add requirejs-domready
This commit is contained in:
Masahiro Wakame
2015-10-13 00:36:43 +09:00
3 changed files with 23 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
/// <reference path="domready.d.ts" />
import domReady = require("domReady");
domReady(() => {
return domReady.version;
});
@@ -0,0 +1 @@
--noImplicitAny --target es5 --module amd
+15
View File
@@ -0,0 +1,15 @@
// Type definitions for domReady 2.0.1
// Project: https://github.com/requirejs/domReady
// Definitions by: Nobuhiro Nakamura <https://github.com/lefb766>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "domReady" {
interface DomReady {
(callback: () => any): DomReady;
version: string;
}
let domReady: DomReady;
export = domReady;
}