Commit d4df18f
committed
fix(types): resolve TypeScript type errors in iocraft and test helpers
Fixed critical type errors preventing build:
- Replaced imported ComponentNode type with comprehensive Element interface
- Added support for all iocraft element properties (flex, border, padding, etc.)
- Fixed border_edges type (object instead of string)
- Fixed flex_basis type (number | string)
- Fixed mixed_text_contents with explicit undefined for optional properties
- Added type casts for iocraft render functions (renderToString, print, eprint)
- Fixed test helper import path (../../utils -> ../../src/utils)
All checks now pass:
- TypeScript: 0 errors
- Oxlint: 0 warnings, 0 errors (955 files, 101 rules)
- Tests: 343 test files, 5,157 tests passed1 parent 2ca9d1b commit d4df18f
File tree
2 files changed
+106
-5
lines changed- packages/cli
- src/utils/terminal
- test/helpers
2 files changed
+106
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
461 | 463 | | |
462 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
463 | 564 | | |
464 | 565 | | |
465 | 566 | | |
| |||
764 | 865 | | |
765 | 866 | | |
766 | 867 | | |
767 | | - | |
| 868 | + | |
768 | 869 | | |
769 | 870 | | |
770 | 871 | | |
771 | 872 | | |
772 | 873 | | |
773 | 874 | | |
774 | 875 | | |
775 | | - | |
| 876 | + | |
776 | 877 | | |
777 | 878 | | |
778 | 879 | | |
779 | 880 | | |
780 | 881 | | |
781 | 882 | | |
782 | 883 | | |
783 | | - | |
| 884 | + | |
784 | 885 | | |
785 | 886 | | |
786 | 887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments