From 806d0f82373a8468d4048b7cfb18d07162204c16 Mon Sep 17 00:00:00 2001 From: Long Yinan Date: Wed, 30 Dec 2015 19:04:53 +0800 Subject: [PATCH] fix import --- gulp-flatten/gulp-flatten-tests.ts | 4 ++-- gulp-flatten/gulp-flatten.d.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gulp-flatten/gulp-flatten-tests.ts b/gulp-flatten/gulp-flatten-tests.ts index ee5622564..5a476195d 100644 --- a/gulp-flatten/gulp-flatten-tests.ts +++ b/gulp-flatten/gulp-flatten-tests.ts @@ -1,8 +1,8 @@ /// /// -import gulp = require("gulp"); -import flatten = require("gulp-flatten"); +import * as gulp from "gulp"; +import * as flatten from "gulp-flatten"; gulp.task("flatten:simple", () => { gulp.src(["files/**/*.txt"]) diff --git a/gulp-flatten/gulp-flatten.d.ts b/gulp-flatten/gulp-flatten.d.ts index ccd9cedf1..2992aff4f 100644 --- a/gulp-flatten/gulp-flatten.d.ts +++ b/gulp-flatten/gulp-flatten.d.ts @@ -13,5 +13,7 @@ declare module "gulp-flatten" { function flatten(options?: IOptions): NodeJS.ReadWriteStream; + namespace flatten {} + export = flatten; }