生成dts带注释

This commit is contained in:
yhh
2020-11-26 11:48:02 +08:00
parent 97dfcb4c04
commit de3f7bff60
6 changed files with 4906 additions and 133 deletions
+2407 -2
View File
File diff suppressed because it is too large Load Diff
+2491 -113
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -3,6 +3,7 @@ const gulp = require("gulp");
const minify = require('gulp-minify'); const minify = require('gulp-minify');
const inject = require("gulp-inject-string"); const inject = require("gulp-inject-string");
const ts = require('gulp-typescript'); const ts = require('gulp-typescript');
const compile = require("gulp-typescript");
const tsProject = ts.createProject('tsconfig.json'); const tsProject = ts.createProject('tsconfig.json');
gulp.task('buildJs', () => { gulp.task('buildJs', () => {
+5 -16
View File
@@ -29,36 +29,25 @@ module es {
} }
/** /**
* begin之前 *
* begin之前contructor中调用这个函数
*/ */
public initialize() { public initialize() {
} }
/** /**
* SceneManager将此场景设置为活动场景时 * Core将这个场景设置为活动场景时
*/ */
public async onStart() { public async onStart() {
} }
/** /**
* SceneManager从活动槽中删除此场景时调用 *
* Core把这个场景从活动槽中移除时
*/ */
public unload() { public unload() {
} }
/**
*
*/
public onActive() {
}
/**
*
*/
public onDeactive() {
}
public begin() { public begin() {
Physics.reset(); Physics.reset();
this.updateResolutionScaler(); this.updateResolutionScaler();
+1 -1
View File
@@ -5,7 +5,7 @@
"target": "es5", "target": "es5",
"declaration": true, "declaration": true,
"sourceMap": false, "sourceMap": false,
"removeComments": true, "removeComments": false,
"outFile": "./framework.js", "outFile": "./framework.js",
"lib": [ "lib": [
"es5", "es5",