Add requirejs-domready

This commit is contained in:
Nobuhiro Nakamura
2015-09-29 14:10:58 +09:00
parent ffceea9dd1
commit 740c99c0f1
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;
}