( appliedLimit: number | undefined, appliedOffset: number | undefined, )
| 132 | // so it may be undefined even when appliedOffset is set — build parts conditionally |
| 133 | // to avoid "limit: undefined" appearing in user-visible output. |
| 134 | function formatLimitInfo( |
| 135 | appliedLimit: number | undefined, |
| 136 | appliedOffset: number | undefined, |
| 137 | ): string { |
| 138 | const parts: string[] = [] |
| 139 | if (appliedLimit !== undefined) parts.push(`limit: ${appliedLimit}`) |
| 140 | if (appliedOffset) parts.push(`offset: ${appliedOffset}`) |
| 141 | return parts.join(', ') |
| 142 | } |
| 143 | |
| 144 | const outputSchema = lazySchema(() => |
| 145 | z.object({ |
no test coverage detected