我正在尝试为TypeDoc运行gulp任务,但是我为每个ts文件获取此错误
Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning
我的gulp文件:
var gulp = require('gulp');
var typedoc = require("gulp-typedoc");
gulp.task("typedoc", function() {
return gulp
.src(["src/**/*.ts"])
.pipe(typedoc({
module: "commonjs",
target: "es5",
out: "docs/",
name: "My project title"
}))
;
});
知道为什么会这样吗?
答案 0 :(得分:0)
尝试将experimentalDecorators
选项添加到gulpfile中,如下所示:
var gulp = require('gulp');
var typedoc = require("gulp-typedoc");
gulp.task("typedoc", function() {
return gulp
.src(["src/**/*.ts"])
.pipe(typedoc({
module: "commonjs",
target: "es5",
out: "docs/",
name: "My project title",
"experimentalDecorators": "true",
}))
;
});