π Description
Migrate all files in /utils and /hooks from JavaScript to TypeScript.
This ensures strong typing for core logic functions that drive sound generation, canvas drawing, and user interactions.
β
Tasks
- Convert the following utility files:
applyEnvelope.js
applyShape.js
createWaveform.js
- Convert hooks:
useCanvasDrawing.js
useCanvasInteraction.js
- Add explicit types for parameters and return values.
- Replace implicit
any types with proper TypeScript annotations.
- Verify everything compiles and runs correctly.
π― Expected Outcome
- All utility and hook logic files are
.ts or .tsx.
- Type checking ensures function correctness.
- No TypeScript errors or regressions occur.
π Description
Migrate all files in
/utilsand/hooksfrom JavaScript to TypeScript.This ensures strong typing for core logic functions that drive sound generation, canvas drawing, and user interactions.
β Tasks
applyEnvelope.jsapplyShape.jscreateWaveform.jsuseCanvasDrawing.jsuseCanvasInteraction.jsanytypes with proper TypeScript annotations.π― Expected Outcome
.tsor.tsx.