Skip to content

Commit ef4c7c1

Browse files
committed
fix: resolve TypeScript errors in manual test cases
- Add missing stub files (user-detail, book-list, services/unused) - Add missing exports to lib.ts (VeryLongName4/5/6) - Add @angular/router dependency - Relax strict mode (demo files, not production code)
1 parent 8d4628a commit ef4c7c1

6 files changed

Lines changed: 14 additions & 1 deletion

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export class BookList {
2+
title = 'Book List';
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export class UserDetail {
2+
name = 'User Detail';
3+
}

tests/manual/lib.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
export const VeryLongName1 = 'value1';
33
export const VeryLongName2 = 'value2';
44
export const VeryLongName3 = 'value3';
5+
export const VeryLongName4 = 'value4';
6+
export const VeryLongName5 = 'value5';
7+
export const VeryLongName6 = 'value6';
58
export const VeryLongSpecifierName1 = 'spec1';
69
export const VeryLongSpecifierName2 = 'spec2';
710
export const VeryLongSpecifierName3 = 'spec3';

tests/manual/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"devDependencies": {
1111
"@angular/core": "^19.1.5",
1212
"@angular/common": "^19.1.5",
13+
"@angular/router": "^19.1.5",
1314
"rxjs": "^7.8.1",
1415
"react": "^18.3.1",
1516
"vue": "^3.5.13",

tests/manual/services/unused.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export class UnusedService {
2+
unused = true;
3+
}

tests/manual/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"module": "ES2022",
55
"lib": ["ES2022", "DOM"],
66
"jsx": "react",
7-
"strict": true,
7+
"strict": false,
88
"esModuleInterop": true,
99
"skipLibCheck": true,
1010
"moduleResolution": "node",

0 commit comments

Comments
 (0)