@sudobility/sudojo_types
v1.2.49
Published
TypeScript types for Sudojo API - Sudoku learning platform
Maintainers
Readme
@sudobility/sudojo_types
Shared TypeScript type definitions for the Sudojo Sudoku learning platform.
Installation
bun add @sudobility/sudojo_typesUsage
import type { Board, Daily, Level, Technique, TechniqueId } from '@sudobility/sudojo_types';
import { successResponse, errorResponse } from '@sudobility/sudojo_types';
import { techniqueToBit, hasTechnique, addTechnique } from '@sudobility/sudojo_types';Types
- Entities:
Board,Daily,Level,Technique,UserProgress,Challenge - Enums:
TechniqueId(60 solving techniques) - Requests/Responses: Create/update types for boards, dailies, levels, techniques
- Utilities:
ApiResponse<T>,PaginatedResponse<T>,successResponse(),errorResponse()(re-exported from@sudobility/types) - BigInt helpers:
techniqueToBit(),hasTechnique(),addTechnique()for technique bitmask fields
Development
bun run build # Build ESM + CJS
bun run test # Run tests once
bun run typecheck # TypeScript check
bun run lint # ESLint
bun run verify # Typecheck + lint + test + buildRelated Packages
@sudobility/sudojo_client-- React Query hooks for Sudojo API@sudobility/sudojo_lib-- Business logic and game state hookssudojo_api-- Backend API serversudojo_app/sudojo_app_rn-- Web and mobile apps
License
BUSL-1.1
