生成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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

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', () => {

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();

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",