Type parity
Adapter design. This page specifies the unpublished adapter. Run a request with Octokit and Effect.
Use compile-time equality and expected-error fixtures against the same resolved SDK declarations. A generic Parameters<T> / ReturnType<T> transform loses overloads and generic response relationships. Test the public API from an external consumer project and assert absence of accidental any where upstream provides a concrete result.
| Fixture | Assertion |
|---|---|
| Named REST | Supplying an object to pulls.get checks fields such as pull_number and preserves numeric status and response data. In 17.0.0 the generated call signature marks the whole params argument optional, including on some routes with required path fields. Test that quirk separately. A zero-parameter endpoint stays callable without an object. |
| Raw request | Literal route infers parameters and result; option object, endpoint defaults and dynamic strings keep their upstream fallback. Test an operation available only on the route map. |
| Pagination | Route, method reference, options object, mapper-only and mapper/done forms retain normalized item and mapped result types. GraphQL result generic survives both direct and paginated calls. |
| Context | A bare Core client has no generated REST methods. A plugin-extended client survives fromOctokit, the typed service key, installation traversal and callback use. |
| Auth and events | Strategy-specific auth result/factory type, typed payload by event or action, OAuth client type, transformed webhook installation client and callback-required services survive. |
| Effect error/environment | A timeout, typed library failure, consumer failure and required callback service remain visible at the correct composition boundary. |
Exercise minimum and current supported dependency versions before defining peer ranges. Run strict TypeScript and consumer module resolution compatible with upstream ESM exports. Keep upstream’s permissive dynamic overloads visible; avoid promising compile-time rejection that the SDK itself does not provide.