Skip to content

readIdSet

function readIdSet(cursor?: unknown): string[];

Read an idSet cursor as a string array.

ParameterTypeDescription
cursor?unknownThe source’s previous cursor (ctx.cursor).

string[]

The ids already seen (oldest first), or an empty array when the cursor is absent or is a different strategy — an empty set and a first run mean the same thing to a caller, so there is nothing to distinguish. Non-string entries are dropped rather than handed on as ids.