Normalize model- or caller-supplied text pagination bounds.
Every backend must slice content and calculate pagination metadata from the
same normalized values. Otherwise a fractional or negative argument could
return one window while advertising a different nextOffset.
Binary reads do not use this helper because their backend contract ignores line-based offset and limit values.
normalizeReadPagination(offset: number, limit: number): __type| Name | Type | Description |
|---|---|---|
offset* | number | |
limit* | number |