Awesome Reviewers

Any runtime API you expect developers to use must be discoverable and accurate in the public contract: update README/API docs and ensure the method is declared in the shipped .d.ts. Avoid “hiding” APIs behind missing typings or relying on long-lived @ts-expect-error type suppressions; fix the types/integration so the typed contract matches runtime behavior.

Practical checks:

Example (prefer existing API + ensure it’s part of the public contract):

// Prefer the dedicated API if it exists.
query.clear = () => {
  // Use public, typed method instead of duplicating internals.
  if (query.cancel) query.cancel()
  else {
    clearTimeout(query.staleTimeout)
    clearTimeout(query.cacheTimeout)
  }
}

// Then ensure docs + .d.ts include `cancel(): void` (or the correct signature).