Skip to content

Commit

Permalink
docs: add apidocs for includeAllversions
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Feb 12, 2025
1 parent a717862 commit 7485afd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,12 @@ export interface ListenOptions {
includePreviousRevision?: boolean

/**
* @internal
* Whether to include events for drafts and versions. As of API Version >= v2025-02-19, only events
* for published documents will be included by default.
* If you need events from drafts and versions, set this to `true`.
* Note: Keep in mind that additional document variants may be introduced in the future, so it's
* recommended to respond to events in a way that's tolerant of potential future variants, e.g. by
* explicitly checking whether the event is for a draft or a version.
* @defaultValue `false`
*/
includeAllVersions?: boolean
Expand Down

0 comments on commit 7485afd

Please sign in to comment.