Skip to content

TypeScript API / laikacms/core / LaikaDone

Interface: LaikaDone ​

Base shape for a LaikaStream.LaikaStream'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 optional pagination?: 
  | {
  page: number;
  perPage?: number;
}
  | {
  before?: string;
  perPage?: number;
}
  | {
  after?: string;
  perPage?: number;
}
  | {
  limit?: number;
  offset: number;
};

total? ​

ts
readonly optional total?: number;

Released under the MIT License.