Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
require(moduleNames: string[], callback: Function) {
return dojoRequire(moduleNames, callback);
}
}
require(moduleNames: string[], callback: (...modules: any[]) => void) {
return dojoRequire(moduleNames, callback);
}
}
return new Promise((resolve: Function) => {
dojoRequire(moduleNames, (...modules: any[]) => {
resolve(modules);
});
});
}
return new Promise((resolve) => {
dojoRequire(moduleNames, (...modules) => {
resolve(modules);
});
});
}