gcode-preview - v3.0.0-alpha.5
    Preparing search index...

    Type Alias CommandHandler

    CommandHandler: (command: GCodeCommand, job: Job) => void

    Executes a single G-code command against a job

    Type declaration

    Everything a handler needs — state, stats, and path bookkeeping like breakPath/resolvePosition — lives on the job. Handlers import this type with a type-only import, so registering them here does not create a circular runtime dependency.