diff --git a/babel.config.js b/babel.config.js index 3e4899f4a74..fa522d8587c 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,6 +1,6 @@ module.exports = { presets: [ ['@babel/preset-env', { targets: { node: process.versions.node.split('.')[0] } }], - '@babel/preset-typescript', + ['@babel/preset-typescript', { allowDeclareFields: true }], ], }; diff --git a/packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts b/packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts index 93640ecb0bd..9bcb56a6ed9 100644 --- a/packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts +++ b/packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts @@ -691,7 +691,7 @@ export class BaseResolversVisitor< TRawConfig extends RawResolversConfig = RawResolversConfig, TPluginConfig extends ParsedResolversConfig = ParsedResolversConfig > extends BaseVisitor { - protected _parsedConfig: TPluginConfig; + protected declare _parsedConfig: TPluginConfig; protected _declarationBlockConfig: DeclarationBlockConfig = {}; protected _collectedResolvers: { [key: string]: { diff --git a/tsconfig.json b/tsconfig.json index 6379f114723..0a3e1fc5c5d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,8 +9,8 @@ "importHelpers": true, "experimentalDecorators": true, "module": "esnext", - "target": "es2021", - "lib": ["es6", "esnext", "es2021", "dom"], + "target": "es2022", + "lib": ["es6", "esnext", "es2023", "dom"], "moduleResolution": "node", "emitDecoratorMetadata": true, "sourceMap": true,