diff --git a/frontend/src/components/Editor/EditorComponents/Editor.tsx b/frontend/src/components/Editor/EditorComponents/Editor.tsx index 64fec42d..3d914adb 100644 --- a/frontend/src/components/Editor/EditorComponents/Editor.tsx +++ b/frontend/src/components/Editor/EditorComponents/Editor.tsx @@ -339,7 +339,7 @@ const Editor: React.FC = (): ReactElement => { ); monaco.languages.typescript.typescriptDefaults.setCompilerOptions({ - target: monaco.languages.typescript.ScriptTarget.ES2018, + target: monaco.languages.typescript.ScriptTarget.ES2020, allowNonTsExtensions: true, moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs, }); diff --git a/frontend/src/utils/formatters.js b/frontend/src/utils/formatters.js index 2598aeca..3a5ced64 100644 --- a/frontend/src/utils/formatters.js +++ b/frontend/src/utils/formatters.js @@ -81,6 +81,7 @@ declare const context: { set: (key, value) => Promise, log: (...log) => Promise, fetchFromSocialApi: (path, options) => Promise, + error: (message: string) => Promise, db: { IndexerStorage: { insert: (objects: IndexerStorageInput | IndexerStorageInput[]) => Promise; diff --git a/frontend/src/utils/pgSchemaTypeGen.js b/frontend/src/utils/pgSchemaTypeGen.js index d4e4a4fb..3aa73d2f 100644 --- a/frontend/src/utils/pgSchemaTypeGen.js +++ b/frontend/src/utils/pgSchemaTypeGen.js @@ -187,6 +187,7 @@ export class PgSchemaTypeGen { set: (key, value) => Promise, log: (...log) => Promise, fetchFromSocialApi: (path, options) => Promise, + error: (message: string) => Promise, db: {`; const tableList = new Set();