Skip to content

fix(types): remove duplicate EnrollmentStatus/QuizResult definitions - #470

Merged
DeFiVC merged 1 commit into
ChainLearnOfficial:mainfrom
codemagician1949:fix/duplicate-enrollmentstatus-quizresult-427
Sep 28, 2026
Merged

DeFiVC merged 1 commit into
ChainLearnOfficial:mainfrom
codemagician1949:fix/duplicate-enrollmentstatus-quizresult-427

Conversation

@codemagician1949

@codemagician1949 codemagician1949 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #427: src/types/course.ts declared EnrollmentStatus twice and CourseEnrollment.status twice (required then optional); src/types/quiz.ts declared QuizResult as an interface then redefined it as a type alias. Kept the later, documented (#310) definition in each case and removed the stale earlier one. Confirmed via grep that nothing consumes the removed EnrollmentStatus members (active/dropped) or the removed QuizResult interface shape.

Verified: npx tsc --noEmit -p tsconfig.json — clean except one pre-existing, unrelated syntax error in src/lib/api/client.test.ts (confirmed via git log it was last touched by a different PR, no relation to these types).

To be completed (not part of this PR, not closed by it)

Closes #427

course.ts declared EnrollmentStatus twice and CourseEnrollment.status
twice (required then optional); quiz.ts declared QuizResult as an
interface then redefined it as a type alias. Kept the later,
documented (ChainLearnOfficial#310) definitions in each file; no consumer referenced the
removed EnrollmentStatus members ("active"/"dropped") or the removed
QuizResult interface shape.

Closes ChainLearnOfficial#427
@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@codemagician1949 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@netlify

netlify Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for chainlearn failed.

Name Link
🔨 Latest commit dfac089
🔍 Latest deploy log https://app.netlify.com/projects/chainlearn/deploys/6ab990c35aec060008bdf746

@DeFiVC
DeFiVC merged commit eeb15d1 into ChainLearnOfficial:main Sep 28, 2026
1 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants