This commit is contained in:
2022-01-21 20:09:04 +00:00
parent 9cae88a433
commit 3043853499
2 changed files with 4 additions and 1 deletions

View File

@@ -561,7 +561,7 @@ export default {
diagnosticCodesToIgnore: [2393, 7044] //2393 hides a weird error about ayPrepareData being declared more than once which I think is more related to it being barebones in there, 7044 hides a useless prompt about ayData parameter not being strongly typed
});
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
target: monaco.languages.typescript.ScriptTarget.ES6,
target: monaco.languages.typescript.ScriptTarget.ES2020,
allowNonTsExtensions: true
});
monaco.languages.typescript.javascriptDefaults.addExtraLib(
@@ -572,6 +572,7 @@ export default {
"export declare global function ayGetFromAPI(route:string,token?:string): promise<object>;",
"export declare global function ayPostToAPI(route:string,data?:object,token?:string): promise<result:object>;",
"export declare global function ayGetTranslations(keys:Array): promise<void>;",
"export declare global declare namespace AYMETA {export const ayClientMetaData; }",
"export declare global declare namespace Handlebars {export function registerHelper(name: string, fn: HelperDelegate): void; export function registerHelper(name: HelperDeclareSpec): void;}"
].join("\n"),
"filename/facts.d.ts"