Fix Package TypeScript Errors
- Resolve the target package path and read its
package.jsonplus nearestAGENTS.md. - Run the package's declared
check-types,typecheck, orcheckscript. Preferbun run --cwd <package> <script>or the workspace's documentedvpcommand; do not assume a Turbo task exists. - Group errors by root cause and fix the smallest group first.
- Preserve discriminated unions and exhaustiveness. Do not use
any, broad assertions, or ignore directives to silence failures. - Re-run the exact focused command after each patch.
- If the correct fix belongs to another package, report that ownership issue instead of adding a local compatibility cast.
Completion requires zero target-package TypeScript errors from the declared package check, with any unrelated baseline failures recorded separately.