diff --git a/src/app/customers/customers-grid/customers-grid.component.html b/src/app/customers/customers-grid/customers-grid.component.html
index cc75520d..ca6e0465 100644
--- a/src/app/customers/customers-grid/customers-grid.component.html
+++ b/src/app/customers/customers-grid/customers-grid.component.html
@@ -18,7 +18,7 @@
-   |
{{ customer.firstName | capitalize }} |
{{ customer.lastName | capitalize }} |
diff --git a/src/env.d.ts b/src/env.d.ts
deleted file mode 100644
index d88a01f8..00000000
--- a/src/env.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-declare var process: {
- env: {
- NG_APP_API_URL: string;
- // Replace the line below with your environment variable for better type checking
- [key: string]: any;
- };
-};
diff --git a/src/types/importMeta.d.ts b/src/types/importMeta.d.ts
new file mode 100644
index 00000000..bea320be
--- /dev/null
+++ b/src/types/importMeta.d.ts
@@ -0,0 +1,7 @@
+interface ImportMeta {
+ readonly env: {
+ [key: string]: string | undefined;
+ NG_APP_API_URL: string;
+ };
+ }
+
\ No newline at end of file
diff --git a/tsconfig.app.json b/tsconfig.app.json
index f9d0e260..58ea58cf 100644
--- a/tsconfig.app.json
+++ b/tsconfig.app.json
@@ -1,3 +1,5 @@
+/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
+/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
{
"extends": "./tsconfig.json",
"compilerOptions": {
@@ -5,13 +7,9 @@
"types": []
},
"files": [
- "src/main.ts",
- "src/polyfills.ts"
+ "src/main.ts"
],
"include": [
"src/**/*.d.ts"
- ],
- "exclude": [
- "**/*.stories.*"
]
-}
+}
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
index f521ce14..f8325094 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,28 +1,28 @@
-/* To learn more about this file see: https://angular.io/config/tsconfig. */
+/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
+/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
{
"compileOnSave": false,
"compilerOptions": {
- "baseUrl": "./",
"outDir": "./dist/out-tsc",
- "forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
+ "skipLibCheck": true,
+ "isolatedModules": true,
+ "esModuleInterop": true,
"sourceMap": true,
"declaration": false,
- "downlevelIteration": true,
"experimentalDecorators": true,
- "moduleResolution": "node",
+ "moduleResolution": "bundler",
"importHelpers": true,
"target": "ES2022",
- "module": "es2020",
+ "module": "ES2022",
"lib": [
- "es2020",
+ "ES2022",
"dom"
- ],
- "useDefineForClassFields": false
+ ]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,