From 9d2a72f4a77baf8624b10cc8cf98ead0e41eadcc Mon Sep 17 00:00:00 2001 From: Florian Vogt Date: Fri, 24 Apr 2026 17:22:34 +0200 Subject: [PATCH 1/3] fix: Update sections regarding new TS config --- packages/quickstart/steps/01/README.md | 14 +++++--------- packages/walkthrough/steps/02/README.md | 14 +++++--------- .../steps/07/webapp/controller/App.controller.ts | 4 ++-- .../steps/08/webapp/controller/App.controller.ts | 2 +- 4 files changed, 13 insertions(+), 21 deletions(-) diff --git a/packages/quickstart/steps/01/README.md b/packages/quickstart/steps/01/README.md index 17c07e48e..2c57c3d46 100644 --- a/packages/quickstart/steps/01/README.md +++ b/packages/quickstart/steps/01/README.md @@ -200,25 +200,21 @@ We specify the compiler options as follow: Let's go through the compiler options specified in the file: -- `"target": "es2022"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to ES2022, which means the generated JavaScript code will be compatible with ECMAScript 2022. +- `"target": "es2025"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to ES2025, which means the generated JavaScript code will be compatible with ECMAScript 2025. -- `"module": "es2022"`: The `module` parameter specifies the module code generation for the compiled JavaScript. We configured it to ES2022, which means the generated JavaScript will use ECMAScript modules. - -- `"moduleResolution": "node"`: The `moduleResolution` parameter specifies how module dependencies should be resolved. We set it to "node", which means the compiler will use Node.js-style module resolution. +- `"types": [ "node", "@types/openui5"]`: The `types` parameter defines the types used for TypeScript code. We configure this parameter to use the built-in Node.js types and the OpenUI5 types delivered by the `@types/openui5` package. - `"skipLibCheck": true`: When the `skipLibCheck` parameter is set to `true`, it tells the compiler to skip type checking of declaration files (`.d.ts` files) that are part of external libraries. This can improve compilation speed. - `"allowJs": true`: The `allwJs` parameter allows JavaScript files to be included in the TypeScript project. This option enables TypeScript to compile JavaScript code along with TypeScript code. -- `"strict": true`: When set to "true" the `strict` parameter enables a wide range of type checking behavior that results in more type-safe programs. It includes settings like `noImplicitAny`, `noImplicitThis`, `alwaysStrict` and others. - - `"strictPropertyInitialization": false`: The `strictPropertyInitialization` parameter is a specific type of strict check that ensures that each instance property of a class gets initialized in the constructor body, or by a property initializer. By setting this to false, it disables strict checking of uninitialized class properties. This means that class properties can be left uninitialized or assigned the value `undefined` without causing a compiler error. -- `"rootDir": "webapp"`: The `rootDir` paraemter specifies the root directory of the TypeScript source files. The compiler will consider this directory as the starting point for resolving file paths. We set it to our `webapp` folder. +- `"rootDir": "./webapp"`: The `rootDir` paraemter specifies the root directory of the TypeScript source files. The compiler will consider this directory as the starting point for resolving file paths. We set it to our `webapp` folder. -- `"baseUrl": "./"`: The `baseUrl` parameter is used to resolve non-relative module names. We specified that non-relative module names are resolved relative to the location of the `tsconfig.json` file. +- `"paths": { "ui5/quickstart/*": ["./webapp/**/*"] }`: The `path` paramter specifies path mappings for module resolution. It allows you to define custom module paths that map to specific directories or files. In this case, it maps the module path `ui5/quickstart/*`. -- `"paths": { "ui5/quickstart/*": ["webapp/*"] }`: The `path` paramter specifies path mappings for module resolution. It allows you to define custom module paths that map to specific directories or files. In this case, it maps the module path `ui5/quickstart/*` +- `"include": [ "./webapp/**/*" ]`: Specifies an array of filenames or patterns to include in TypeScript compilation. *** diff --git a/packages/walkthrough/steps/02/README.md b/packages/walkthrough/steps/02/README.md index da5ac1f5d..ac0bde60d 100644 --- a/packages/walkthrough/steps/02/README.md +++ b/packages/walkthrough/steps/02/README.md @@ -90,25 +90,21 @@ We specify the compiler options as follow: Let's go through the compiler options specified in the file: -- `"target": "es2022"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to ES2022, which means the generated JavaScript code will be compatible with ECMAScript 2022. +- `"target": "es2025"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to ES2025, which means the generated JavaScript code will be compatible with ECMAScript 2025. -- `"module": "es2022"`: The `module` parameter specifies the module code generation for the compiled JavaScript. We configured it to ES2022, which means the generated JavaScript will use ECMAScript modules. - -- `"moduleResolution": "node"`: The `moduleResolution` parameter specifies how module dependencies should be resolved. We set it to "node", which means the compiler will use Node.js-style module resolution. +- `"types": [ "node", "@types/openui5"]`: The `types` parameter defines the types used for TypeScript code. We configure this parameter to use the built-in Node.js types and the OpenUI5 types delivered by the `@types/openui5` package. - `"skipLibCheck": true`: When the `skipLibCheck` parameter is set to `true`, it tells the compiler to skip type checking of declaration files (`.d.ts` files) that are part of external libraries. This can improve compilation speed. - `"allowJs": true`: The `allwJs` parameter allows JavaScript files to be included in the TypeScript project. This option enables TypeScript to compile JavaScript code along with TypeScript code. -- `"strict": true`: When set to "true" the `strict` parameter enables a wide range of type checking behavior that results in more type-safe programs. It includes settings like `noImplicitAny`, `noImplicitThis`, `alwaysStrict` and others. - - `"strictPropertyInitialization": false`: The `strictPropertyInitialization` parameter is a specific type of strict check that ensures that each instance property of a class gets initialized in the constructor body, or by a property initializer. By setting this to false, it disables strict checking of uninitialized class properties. This means that class properties can be left uninitialized or assigned the value `undefined` without causing a compiler error. -- `"rootDir": "webapp"`: The `rootDir` paraemter specifies the root directory of the TypeScript source files. The compiler will consider this directory as the starting point for resolving file paths. We set it to our `webapp` folder. +- `"rootDir": "./webapp"`: The `rootDir` paraemter specifies the root directory of the TypeScript source files. The compiler will consider this directory as the starting point for resolving file paths. We set it to our `webapp` folder. -- `"baseUrl": "./"`: The `baseUrl` parameter is used to resolve non-relative module names. We specified that non-relative module names are resolved relative to the location of the `tsconfig.json` file. +- `"paths": { "ui5/walkthrough/*": ["./webapp/*"] }`: The `path` paramter specifies path mappings for module resolution. It allows you to define custom module paths that map to specific directories or files. In this case, it maps the module path `ui5/walkthrough/*`. -- `"paths": { "ui5/walkthrough/*": ["./webapp/*"] }`: The `path` paramter specifies path mappings for module resolution. It allows you to define custom module paths that map to specific directories or files. In this case, it maps the module path `ui5/walkthrough/*` +- `"include": [ "./webapp/**/*" ]`: Specifies an array of filenames or patterns to include in TypeScript compilation. *** diff --git a/packages/walkthrough/steps/07/webapp/controller/App.controller.ts b/packages/walkthrough/steps/07/webapp/controller/App.controller.ts index 6a9186b70..46582538c 100644 --- a/packages/walkthrough/steps/07/webapp/controller/App.controller.ts +++ b/packages/walkthrough/steps/07/webapp/controller/App.controller.ts @@ -14,10 +14,10 @@ export default class AppController extends Controller { } }; const dataModel = new JSONModel(data); - // because of "strict" mode in tsconfig.json a null check is required for this.getView() + this.getView()?.setModel(dataModel); } - + onShowHello(): void { MessageToast.show("Hello World"); } diff --git a/packages/walkthrough/steps/08/webapp/controller/App.controller.ts b/packages/walkthrough/steps/08/webapp/controller/App.controller.ts index 524aa5bfe..1b72b85c3 100644 --- a/packages/walkthrough/steps/08/webapp/controller/App.controller.ts +++ b/packages/walkthrough/steps/08/webapp/controller/App.controller.ts @@ -16,7 +16,7 @@ export default class AppController extends Controller { } }; const dataModel = new JSONModel(data); - // because of "strict" mode in tsconfig.json a null check is required for this.getView() + this.getView()?.setModel(dataModel); // set i18n model on view From 574117221c8785106af75aecce26515f478d94bb Mon Sep 17 00:00:00 2001 From: Florian Vogt Date: Tue, 28 Apr 2026 14:13:41 +0200 Subject: [PATCH 2/3] fix: Use ES2023, highest supported Node version by UI5 CLI --- packages/quickstart/steps/01/README.md | 4 ++-- packages/quickstart/steps/01/tsconfig.json | 2 +- packages/quickstart/steps/02/tsconfig.json | 2 +- packages/quickstart/steps/03/tsconfig.json | 2 +- packages/walkthrough/steps/02/README.md | 4 ++-- packages/walkthrough/steps/02/tsconfig.json | 2 +- packages/walkthrough/steps/03/tsconfig.json | 2 +- packages/walkthrough/steps/04/tsconfig.json | 2 +- packages/walkthrough/steps/05/tsconfig.json | 2 +- packages/walkthrough/steps/06/tsconfig.json | 2 +- packages/walkthrough/steps/07/tsconfig.json | 2 +- packages/walkthrough/steps/08/tsconfig.json | 2 +- packages/walkthrough/steps/09/tsconfig.json | 2 +- packages/walkthrough/steps/10/tsconfig.json | 2 +- packages/walkthrough/steps/11/tsconfig.json | 2 +- packages/walkthrough/steps/12/tsconfig.json | 2 +- packages/walkthrough/steps/13/tsconfig.json | 2 +- packages/walkthrough/steps/14/tsconfig.json | 2 +- packages/walkthrough/steps/15/tsconfig.json | 2 +- packages/walkthrough/steps/16/tsconfig.json | 2 +- packages/walkthrough/steps/17/tsconfig.json | 2 +- packages/walkthrough/steps/18/tsconfig.json | 2 +- packages/walkthrough/steps/19/tsconfig.json | 2 +- packages/walkthrough/steps/20/tsconfig.json | 2 +- packages/walkthrough/steps/21/tsconfig.json | 2 +- packages/walkthrough/steps/22/tsconfig.json | 2 +- packages/walkthrough/steps/23/tsconfig.json | 2 +- packages/walkthrough/steps/24/tsconfig.json | 2 +- packages/walkthrough/steps/25/tsconfig.json | 2 +- packages/walkthrough/steps/26/tsconfig.json | 2 +- packages/walkthrough/steps/27/tsconfig.json | 2 +- packages/walkthrough/steps/28/tsconfig.json | 2 +- packages/walkthrough/steps/29/tsconfig.json | 2 +- packages/walkthrough/steps/30/tsconfig.json | 2 +- packages/walkthrough/steps/31/tsconfig.json | 2 +- packages/walkthrough/steps/32/tsconfig.json | 2 +- packages/walkthrough/steps/33/tsconfig.json | 2 +- packages/walkthrough/steps/34/tsconfig.json | 2 +- packages/walkthrough/steps/35/tsconfig.json | 2 +- packages/walkthrough/steps/36/tsconfig.json | 2 +- packages/walkthrough/steps/37/tsconfig.json | 2 +- packages/walkthrough/steps/38/tsconfig.json | 2 +- 42 files changed, 44 insertions(+), 44 deletions(-) diff --git a/packages/quickstart/steps/01/README.md b/packages/quickstart/steps/01/README.md index 2c57c3d46..f87c301d4 100644 --- a/packages/quickstart/steps/01/README.md +++ b/packages/quickstart/steps/01/README.md @@ -175,7 +175,7 @@ We specify the compiler options as follow: ```json { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": [ "node", "@types/openui5" @@ -200,7 +200,7 @@ We specify the compiler options as follow: Let's go through the compiler options specified in the file: -- `"target": "es2025"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to ES2025, which means the generated JavaScript code will be compatible with ECMAScript 2025. +- `"target": "es2023"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to es2023, which means the generated JavaScript code will be compatible with ECMAScript 2025. - `"types": [ "node", "@types/openui5"]`: The `types` parameter defines the types used for TypeScript code. We configure this parameter to use the built-in Node.js types and the OpenUI5 types delivered by the `@types/openui5` package. diff --git a/packages/quickstart/steps/01/tsconfig.json b/packages/quickstart/steps/01/tsconfig.json index cebcaac0a..ddc228fd3 100644 --- a/packages/quickstart/steps/01/tsconfig.json +++ b/packages/quickstart/steps/01/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": [ "node", "@types/openui5" diff --git a/packages/quickstart/steps/02/tsconfig.json b/packages/quickstart/steps/02/tsconfig.json index cebcaac0a..ddc228fd3 100644 --- a/packages/quickstart/steps/02/tsconfig.json +++ b/packages/quickstart/steps/02/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": [ "node", "@types/openui5" diff --git a/packages/quickstart/steps/03/tsconfig.json b/packages/quickstart/steps/03/tsconfig.json index cebcaac0a..ddc228fd3 100644 --- a/packages/quickstart/steps/03/tsconfig.json +++ b/packages/quickstart/steps/03/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": [ "node", "@types/openui5" diff --git a/packages/walkthrough/steps/02/README.md b/packages/walkthrough/steps/02/README.md index ac0bde60d..dfb823b02 100644 --- a/packages/walkthrough/steps/02/README.md +++ b/packages/walkthrough/steps/02/README.md @@ -74,7 +74,7 @@ We specify the compiler options as follow: ```json { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, @@ -90,7 +90,7 @@ We specify the compiler options as follow: Let's go through the compiler options specified in the file: -- `"target": "es2025"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to ES2025, which means the generated JavaScript code will be compatible with ECMAScript 2025. +- `"target": "es2023"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to es2023, which means the generated JavaScript code will be compatible with ECMAScript 2025. - `"types": [ "node", "@types/openui5"]`: The `types` parameter defines the types used for TypeScript code. We configure this parameter to use the built-in Node.js types and the OpenUI5 types delivered by the `@types/openui5` package. diff --git a/packages/walkthrough/steps/02/tsconfig.json b/packages/walkthrough/steps/02/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/02/tsconfig.json +++ b/packages/walkthrough/steps/02/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/03/tsconfig.json b/packages/walkthrough/steps/03/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/03/tsconfig.json +++ b/packages/walkthrough/steps/03/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/04/tsconfig.json b/packages/walkthrough/steps/04/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/04/tsconfig.json +++ b/packages/walkthrough/steps/04/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/05/tsconfig.json b/packages/walkthrough/steps/05/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/05/tsconfig.json +++ b/packages/walkthrough/steps/05/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/06/tsconfig.json b/packages/walkthrough/steps/06/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/06/tsconfig.json +++ b/packages/walkthrough/steps/06/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/07/tsconfig.json b/packages/walkthrough/steps/07/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/07/tsconfig.json +++ b/packages/walkthrough/steps/07/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/08/tsconfig.json b/packages/walkthrough/steps/08/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/08/tsconfig.json +++ b/packages/walkthrough/steps/08/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/09/tsconfig.json b/packages/walkthrough/steps/09/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/09/tsconfig.json +++ b/packages/walkthrough/steps/09/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/10/tsconfig.json b/packages/walkthrough/steps/10/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/10/tsconfig.json +++ b/packages/walkthrough/steps/10/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/11/tsconfig.json b/packages/walkthrough/steps/11/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/11/tsconfig.json +++ b/packages/walkthrough/steps/11/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/12/tsconfig.json b/packages/walkthrough/steps/12/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/12/tsconfig.json +++ b/packages/walkthrough/steps/12/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/13/tsconfig.json b/packages/walkthrough/steps/13/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/13/tsconfig.json +++ b/packages/walkthrough/steps/13/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/14/tsconfig.json b/packages/walkthrough/steps/14/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/14/tsconfig.json +++ b/packages/walkthrough/steps/14/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/15/tsconfig.json b/packages/walkthrough/steps/15/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/15/tsconfig.json +++ b/packages/walkthrough/steps/15/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/16/tsconfig.json b/packages/walkthrough/steps/16/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/16/tsconfig.json +++ b/packages/walkthrough/steps/16/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/17/tsconfig.json b/packages/walkthrough/steps/17/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/17/tsconfig.json +++ b/packages/walkthrough/steps/17/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/18/tsconfig.json b/packages/walkthrough/steps/18/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/18/tsconfig.json +++ b/packages/walkthrough/steps/18/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/19/tsconfig.json b/packages/walkthrough/steps/19/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/19/tsconfig.json +++ b/packages/walkthrough/steps/19/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/20/tsconfig.json b/packages/walkthrough/steps/20/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/20/tsconfig.json +++ b/packages/walkthrough/steps/20/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/21/tsconfig.json b/packages/walkthrough/steps/21/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/21/tsconfig.json +++ b/packages/walkthrough/steps/21/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/22/tsconfig.json b/packages/walkthrough/steps/22/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/22/tsconfig.json +++ b/packages/walkthrough/steps/22/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/23/tsconfig.json b/packages/walkthrough/steps/23/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/23/tsconfig.json +++ b/packages/walkthrough/steps/23/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/24/tsconfig.json b/packages/walkthrough/steps/24/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/24/tsconfig.json +++ b/packages/walkthrough/steps/24/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/25/tsconfig.json b/packages/walkthrough/steps/25/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/25/tsconfig.json +++ b/packages/walkthrough/steps/25/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/26/tsconfig.json b/packages/walkthrough/steps/26/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/26/tsconfig.json +++ b/packages/walkthrough/steps/26/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/27/tsconfig.json b/packages/walkthrough/steps/27/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/27/tsconfig.json +++ b/packages/walkthrough/steps/27/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/28/tsconfig.json b/packages/walkthrough/steps/28/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/28/tsconfig.json +++ b/packages/walkthrough/steps/28/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/29/tsconfig.json b/packages/walkthrough/steps/29/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/29/tsconfig.json +++ b/packages/walkthrough/steps/29/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/30/tsconfig.json b/packages/walkthrough/steps/30/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/30/tsconfig.json +++ b/packages/walkthrough/steps/30/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/31/tsconfig.json b/packages/walkthrough/steps/31/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/31/tsconfig.json +++ b/packages/walkthrough/steps/31/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/32/tsconfig.json b/packages/walkthrough/steps/32/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/32/tsconfig.json +++ b/packages/walkthrough/steps/32/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/33/tsconfig.json b/packages/walkthrough/steps/33/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/33/tsconfig.json +++ b/packages/walkthrough/steps/33/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/34/tsconfig.json b/packages/walkthrough/steps/34/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/34/tsconfig.json +++ b/packages/walkthrough/steps/34/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/35/tsconfig.json b/packages/walkthrough/steps/35/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/35/tsconfig.json +++ b/packages/walkthrough/steps/35/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/36/tsconfig.json b/packages/walkthrough/steps/36/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/36/tsconfig.json +++ b/packages/walkthrough/steps/36/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/37/tsconfig.json b/packages/walkthrough/steps/37/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/37/tsconfig.json +++ b/packages/walkthrough/steps/37/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, diff --git a/packages/walkthrough/steps/38/tsconfig.json b/packages/walkthrough/steps/38/tsconfig.json index ded2460e3..dbbd22fc4 100644 --- a/packages/walkthrough/steps/38/tsconfig.json +++ b/packages/walkthrough/steps/38/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2025", + "target": "es2023", "types": ["node", "@types/openui5"], "skipLibCheck": true, "allowJs": true, From e346960cbfb081a712bd80d80e7ef246eeda78ee Mon Sep 17 00:00:00 2001 From: Florian Vogt Date: Tue, 28 Apr 2026 14:33:13 +0200 Subject: [PATCH 3/3] docs: Apply comments by UA review --- packages/quickstart/steps/01/README.md | 4 ++-- packages/walkthrough/steps/02/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/quickstart/steps/01/README.md b/packages/quickstart/steps/01/README.md index f87c301d4..53f9b750a 100644 --- a/packages/quickstart/steps/01/README.md +++ b/packages/quickstart/steps/01/README.md @@ -200,7 +200,7 @@ We specify the compiler options as follow: Let's go through the compiler options specified in the file: -- `"target": "es2023"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to es2023, which means the generated JavaScript code will be compatible with ECMAScript 2025. +- `"target": "es2023"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to `es2023`, which means the generated JavaScript code is compatible with ECMAScript 2023. - `"types": [ "node", "@types/openui5"]`: The `types` parameter defines the types used for TypeScript code. We configure this parameter to use the built-in Node.js types and the OpenUI5 types delivered by the `@types/openui5` package. @@ -210,7 +210,7 @@ Let's go through the compiler options specified in the file: - `"strictPropertyInitialization": false`: The `strictPropertyInitialization` parameter is a specific type of strict check that ensures that each instance property of a class gets initialized in the constructor body, or by a property initializer. By setting this to false, it disables strict checking of uninitialized class properties. This means that class properties can be left uninitialized or assigned the value `undefined` without causing a compiler error. -- `"rootDir": "./webapp"`: The `rootDir` paraemter specifies the root directory of the TypeScript source files. The compiler will consider this directory as the starting point for resolving file paths. We set it to our `webapp` folder. +- `"rootDir": "./webapp"`: The `rootDir` parameter specifies the root directory of the TypeScript source files. The compiler considers this directory as the starting point for resolving file paths. We set it to our `webapp` folder. - `"paths": { "ui5/quickstart/*": ["./webapp/**/*"] }`: The `path` paramter specifies path mappings for module resolution. It allows you to define custom module paths that map to specific directories or files. In this case, it maps the module path `ui5/quickstart/*`. diff --git a/packages/walkthrough/steps/02/README.md b/packages/walkthrough/steps/02/README.md index dfb823b02..e0aebe2b6 100644 --- a/packages/walkthrough/steps/02/README.md +++ b/packages/walkthrough/steps/02/README.md @@ -90,7 +90,7 @@ We specify the compiler options as follow: Let's go through the compiler options specified in the file: -- `"target": "es2023"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to es2023, which means the generated JavaScript code will be compatible with ECMAScript 2025. +- `"target": "es2023"`: The `target` parameter sets the JavaScript language level that the TypeScript code should be compiled down to. We set it to `es2023`, which means the generated JavaScript code is compatible with ECMAScript 2023. - `"types": [ "node", "@types/openui5"]`: The `types` parameter defines the types used for TypeScript code. We configure this parameter to use the built-in Node.js types and the OpenUI5 types delivered by the `@types/openui5` package. @@ -100,7 +100,7 @@ Let's go through the compiler options specified in the file: - `"strictPropertyInitialization": false`: The `strictPropertyInitialization` parameter is a specific type of strict check that ensures that each instance property of a class gets initialized in the constructor body, or by a property initializer. By setting this to false, it disables strict checking of uninitialized class properties. This means that class properties can be left uninitialized or assigned the value `undefined` without causing a compiler error. -- `"rootDir": "./webapp"`: The `rootDir` paraemter specifies the root directory of the TypeScript source files. The compiler will consider this directory as the starting point for resolving file paths. We set it to our `webapp` folder. +- `"rootDir": "./webapp"`: The `rootDir` parameter specifies the root directory of the TypeScript source files. The compiler considers this directory as the starting point for resolving file paths. We set it to our `webapp` folder. - `"paths": { "ui5/walkthrough/*": ["./webapp/*"] }`: The `path` paramter specifies path mappings for module resolution. It allows you to define custom module paths that map to specific directories or files. In this case, it maps the module path `ui5/walkthrough/*`.