Commit 521a952
Add proper typing for XCSwiftPackageVersionRequirement
Replace `Record<string, any>` with a discriminated union type that
captures all version requirement variants:
- upToNextMajorVersion
- upToNextMinorVersion
- versionRange
- exactVersion
- branch
- revision
Also fix repositoryURL to be optional per the Swift implementation.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent a5605ac commit 521a952
1 file changed
Lines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
597 | 625 | | |
598 | 626 | | |
599 | 627 | | |
600 | | - | |
| 628 | + | |
601 | 629 | | |
602 | | - | |
| 630 | + | |
603 | 631 | | |
604 | 632 | | |
605 | 633 | | |
| |||
0 commit comments