/** * Rule: `no-discarded-typed-registry-chain`. * * Flags `.registerPath(...)` (and the other narrow-carrying chainable * methods) on a `TypedRegistry` receiver when the call appears in * expression-statement position — i.e. the return value is discarded. * The chainable API in `@polygonlabs/openapi-registry` returns a registry * typed with the just-registered entry added; discarding that return drops * the type-level narrow even though the runtime side effect (the entry is * recorded in `inner.definitions`) still happens. Downstream consumers * reading the operations manifest under-report — and `OperationsOf`'s * empty-manifest brand only catches the worst case (every link discarded), * not partial discards. This rule catches partial discards at lint time. * * Type-aware: needs `parserServices` so the receiver's TypeScript symbol * can be inspected. The `typescript()` config in this package wires up * `projectService: true`, which provides what's needed. * * Only the methods whose return type carries a *type-level narrow* are * flagged — `registerPath`, `registerSecurityScheme`, and `with`. * `registerComponent` / `registerWebhook` return `this` (chainable but * type-level identity), and `register` / `registerParameter` return the * registered Zod schema (consumers commonly discard the return when they * just want the side effect — a schema registered for the OpenAPI spec). * Flagging those would produce noise. */ import { ESLintUtils } from '@typescript-eslint/utils'; export declare const noDiscardedChain: ESLintUtils.RuleModule<"discarded", [], unknown, ESLintUtils.RuleListener> & { name: string; }; //# sourceMappingURL=no-discarded-typed-registry-chain.d.ts.map