Skip to content

Convert Utility Functions and Hooks to TypeScriptΒ #8

@mohitvermax

Description

@mohitvermax

πŸ“ 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions