Created
May 2, 2016 23:47
-
-
Save vladima/bed70001a29f2f6dce9a706a71a4618e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare function defineCore(name: string, deps: string[], f: (require, exports,...deps: string[]) => void); | |
function define(name: string, deps: string[], f: (require, exports,...deps: string[]) => void) { | |
defineCore(name, deps, (require, exports, deps) => { | |
require(name); | |
f(require, exports, deps); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment