🐛 Fix excessive 'any' type usage to improve type safety#4085
🐛 Fix excessive 'any' type usage to improve type safety#4085
Conversation
❌ Deploy Preview for kubestellarconsole failed. Why did it fail? →
|
|
👋 Hey @Copilot — thanks for opening this PR!
This is an automated message. |
❌ PR Title Verification FailedYour PR title does not follow the required format. Current title: Required FormatPR titles must start with one of these emoji prefixes:
How to FixEdit your PR title to start with the appropriate emoji. For example:
You can edit the title by clicking the Edit button next to your PR title. This comment was automatically posted by the PR Title Verifier workflow. |
Fixes #issue - removes 'any' type from source files and test files Signed-off-by: copilot <copilot@github.com> Agent-Logs-Url: https://github.com/kubestellar/console/sessions/fba86eba-0537-4620-b746-4c312bd15348 Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
|
Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits. 📝 Please follow instructions in the contributing guide to update your commits with the DCO Full details of the Developer Certificate of Origin can be found at developercertificate.org. The list of commits missing DCO signoff:
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Build Failed (fd05711)@copilot The build failed. Fix the error. Logs: https://app.netlify.com/projects/kubestellarconsole/deploys/69ccd7155618640008b1ac2e |
|
Build failure appears to be a merge conflict with #4062 (component split refactor) which was just merged. The type safety changes themselves are correct — |
Rebased the type safety PR (#4085) on current main to resolve merge conflicts with the component split (#4062). Also fixed 5 new type errors introduced by the any→unknown change: - kubectlProxy.ts: guard optional waitReason with ?? '' - Marketplace.tsx: narrow unknown data with type guard before access Original changes (from Copilot): - 3 source files: any → unknown/proper types - 62 test files: remove {} as any spreads, use typed props Signed-off-by: Andrew Anderson <andy@clubanderson.com>
…#4098) Rebased the type safety PR (#4085) on current main to resolve merge conflicts with the component split (#4062). Also fixed 5 new type errors introduced by the any→unknown change: - kubectlProxy.ts: guard optional waitReason with ?? '' - Marketplace.tsx: narrow unknown data with type guard before access Original changes (from Copilot): - 3 source files: any → unknown/proper types - 62 test files: remove {} as any spreads, use typed props Signed-off-by: Andrew Anderson <andy@clubanderson.com>
|
Superseded by #4098 which rebases this on current main and fixes the merge conflicts + type errors. |
useMarketplace.ts: replacedata?: anywithdata?: unknownuseNightlyE2EData.ts: replace(g: any)and(r: any)withNightlyGuideStatusandNightlyRuntypeskubectlProxy.ts: replaceany[]with properRawPodIteminterfaceas anydata={{}}{} as any{} as anynullfor nullable data