Browse Source

Fix TS for PG

David Catuhe 5 years ago
parent
commit
74ab4aadd0
3 changed files with 1009 additions and 1004 deletions
  1. 1001 1001
      Playground/babylon.d.txt
  2. 6 1
      Playground/js/monacoCreator.js
  3. 2 2
      Tools/Gulp/tasks/gulpTasks-intellisense.js

File diff suppressed because it is too large
+ 1001 - 1001
Playground/babylon.d.txt


+ 6 - 1
Playground/js/monacoCreator.js

@@ -84,8 +84,13 @@ class MonacoCreator {
         } else {
             typescript.typescriptDefaults.setCompilerOptions({
                 module: typescript.ModuleKind.AMD,
-                target: typescript.ScriptTarget.ES5,
+                target: typescript.ScriptTarget.ESNext,
                 noLib: false,
+                strict: false,
+                alwaysStrict: false,
+                strictFunctionTypes: false,
+                suppressExcessPropertyErrors: false,
+                suppressImplicitAnyIndexErrors: true,
                 noResolve: true,
                 suppressOutputPathCheck: true,
 

+ 2 - 2
Tools/Gulp/tasks/gulpTasks-intellisense.js

@@ -15,8 +15,8 @@ gulp.task("intellisense", function() {
         .pipe(replace(/^\s*readonly _/gm, "protected readonly _"))
         .pipe(replace(/^\s*static _/gm, "private static _"))
         .pipe(replace(/^\s*class _/gm, "private class _"))
-        .pipe(replace(/^\s* _/gm, "private _"))
-        .pipe(replace(/^\s*_/gm, "private _"))
+        .pipe(replace(/^\s* _/gm, "protected _"))
+        .pipe(replace(/^\s*_/gm, "protected _"))
         .pipe(gulp.dest(config.build.playgroundDirectory));
 });