Skip to content

TypeScript API / contentia/core / ContentiaDone

Interface: ContentiaDone ​

Base shape for a ContentiaStream.ContentiaStream's terminal OutDone — the "closing return value" emitted after the stream's elements. Methods extend it with their own typed fields.

pagination matches the Pagination request shape: the value describes how to fetch the NEXT page (omitted when there is no next page).

Extended by ​

Properties ​

pagination? ​

ts
readonly pagination?: 
  | {
  page: number;
  perPage?: number;
}
  | {
  before?: string;
  perPage?: number;
}
  | {
  after?: string;
  perPage?: number;
}
  | {
  limit?: number;
  offset: number;
};

total? ​

ts
readonly total?: number;