import { defineHandler } from '@kb-labs/sdk';
import { analyzeTypes } from '@kb-labs/quality-core/types';

// src/rest/handlers/types-handler.ts
var types_handler_default = defineHandler({
  async execute(ctx, input) {
    const { package: packageFilter, errorsOnly } = input.query ?? {};
    return analyzeTypes(ctx.cwd, {
      packageFilter,
      errorsOnly: errorsOnly ?? false
    });
  }
});

export { types_handler_default as default };
//# sourceMappingURL=types-handler.js.map
//# sourceMappingURL=types-handler.js.map