diff --git a/gulp-mocha/gulp-mocha-tests.ts b/gulp-mocha/gulp-mocha-tests.ts
index 09f62b83d..8d3eda4ea 100644
--- a/gulp-mocha/gulp-mocha-tests.ts
+++ b/gulp-mocha/gulp-mocha-tests.ts
@@ -1,9 +1,9 @@
///
///
-import gulp = require("gulp");
-import mocha = require("gulp-mocha");
+import * as gulp from "gulp";
+import * as mocha from "gulp-mocha";
gulp.task('default', function () {
return gulp.src('test.js', {read: false})
.pipe(mocha({reporter: 'nyan'}));
-});
\ No newline at end of file
+});
diff --git a/gulp-mocha/gulp-mocha.d.ts b/gulp-mocha/gulp-mocha.d.ts
index 8d21b1323..b63714b77 100644
--- a/gulp-mocha/gulp-mocha.d.ts
+++ b/gulp-mocha/gulp-mocha.d.ts
@@ -8,5 +8,6 @@
declare module "gulp-mocha" {
function mocha(setupOptions?: MochaSetupOptions): NodeJS.ReadWriteStream;
+ namespace mocha {}
export = mocha;
-}
\ No newline at end of file
+}