Skip to content

Fix duplicate Difficulty type definition by importing from sudoku lib#3

Open
AdekunleBamz wants to merge 1 commit intophessophissy:mainfrom
AdekunleBamz:fix-duplicate-difficulty-type
Open

Fix duplicate Difficulty type definition by importing from sudoku lib#3
AdekunleBamz wants to merge 1 commit intophessophissy:mainfrom
AdekunleBamz:fix-duplicate-difficulty-type

Conversation

@AdekunleBamz
Copy link

Description

Fixed duplicate Difficulty type definition by importing it from the sudoku library instead of redefining it in the types file.

Changes Made

  • Modified src/types/game.ts to import Difficulty from ../lib/sudoku
  • Removed the duplicate type definition
  • This eliminates code duplication and ensures type consistency across the codebase

Type of Change

  • Bug fix (non-breaking change)
  • New feature
  • Breaking change
  • Documentation update

Testing

  • Verified TypeScript compilation passes
  • Ensured all imports and usages of Difficulty type work correctly

Additional Notes

This fix improves code maintainability by centralizing type definitions in the appropriate module.

@vercel
Copy link
Contributor

vercel bot commented Jan 17, 2026

Someone is attempting to deploy a commit to the phessophissy's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant