mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
fix: gulp-connect tests use gulp.task callback correctly (#50118)
* fix: gulp-connect tests use gulp.task callback correctly Previously, `gulp.task` allowed a callback to return anything. Now it's based on the `async-done`'s `AsyncTask`. I'm pretty sure the correct change is to make the callback async, based on that type. * Don't return anything from a sync callback Based on reading the gulp-connect examples, which use sync callbacks and no returns
This commit is contained in:
committed by
GitHub
parent
4cf53efec1
commit
faeb84348a
@@ -96,7 +96,7 @@ gulp.task('connect', () => {
|
||||
express()
|
||||
];
|
||||
|
||||
return connect.server({
|
||||
connect.server({
|
||||
root: [__dirname],
|
||||
port: 8081,
|
||||
livereload: true,
|
||||
@@ -112,7 +112,7 @@ gulp.task('connect', () => {
|
||||
["/path2", express()],
|
||||
];
|
||||
|
||||
return connect.server({
|
||||
connect.server({
|
||||
root: [__dirname],
|
||||
port: 8081,
|
||||
livereload: true,
|
||||
|
||||
Reference in New Issue
Block a user