Skip to content

[F] getPagingOperation

function getPagingOperation(program, op): [PagingOperation | undefined, readonly Diagnostic[]];

Discovers paging properties in an operation’s parameters and return type, without requiring @list. Traverses nested models, base models, and union variants, and returns diagnostics without reporting them.

ParameterType
programProgram
opOperation

[PagingOperation | undefined, readonly Diagnostic[]]

Metadata and diagnostics. Metadata is undefined when no @pageItems property is found; other invalid or duplicate markers can produce diagnostics alongside metadata.