CI turned red this morning: the API client library no longer compiles under our strict TypeScript config, and the release pipeline refuses to ship it.
CI turned red this morning: the API client library no longer compiles under our strict TypeScript config, and the release pipeline refuses to ship it.
Ten compiler errors stand between us and the release. They look like type pedantry, but they are not. Several of them are real contract violations waiting to become production bugs: a service method that returns error responses missing fields callers rely on, a filter typed against the wrong model, and role normalization that accepts roles the API never sends.
Make npx tsc --noEmit pass with the existing tsconfig.json. Do not loosen the config. The library's runtime behavior must stay intact: the visible suite in tests/visible/ covers the mapping and normalization behavior and must keep passing.
Constraints:
tsconfig.json or the tests.any casts to silence the compiler. Fix the types.Client, UserService, the model types) stays as consumers expect it.Adapted from DevStudio-AI/autonomous-software-debugging-benchmarks (evaluation set), upstream license: none declared, internal use pending permission.
Visible test command
npx --no-install jest --ci --coverage=false --testPathPattern=tests/visibleThe repository’s own tests. Run all tests includes them, and so does every submission.
Repository
api-client-wont-compile
Changes under src/ are evaluated.