Commit 2df0821
committed
fix(logger): add type assertions for Console stream properties
Fixes TypeScript compilation errors when accessing private Console stream properties (_stderr, _stdout):
- assert(): Cast message parameters to proper types for console.assert
- progress(): Add type assertion for streamObj write method
- clearLine(): Add type assertions for TTY properties (isTTY, cursorTo, clearLine, write)
These properties are not properly typed in Node.js Console type definitions, so explicit type assertions are needed for type safety.1 parent 9373be8 commit 2df0821
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
697 | | - | |
| 697 | + | |
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
| |||
1503 | 1503 | | |
1504 | 1504 | | |
1505 | 1505 | | |
1506 | | - | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
1507 | 1509 | | |
1508 | 1510 | | |
1509 | 1511 | | |
| |||
1540 | 1542 | | |
1541 | 1543 | | |
1542 | 1544 | | |
1543 | | - | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
1544 | 1553 | | |
1545 | 1554 | | |
1546 | 1555 | | |
| |||
0 commit comments