Ver código fonte

Fix TS for PG

David Catuhe 5 anos atrás
pai
commit
74ab4aadd0

Diferenças do arquivo suprimidas por serem muito extensas
+ 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));
 });