Interface StreamOptions
filter?: CardDB.Options.CardFilter;
filterFn?: (card: Card) => boolean;
groups?: Partial<Record<keyof MetadataGroups, false>>;
isExportable?: true;
logger?: BasicLogger;
uniqueKeys?: { has(key: string): boolean };
uniqueOnce?: true;
}
Index
Properties
Optionalfilter
Optional card-level filtering configuration.
OptionalfilterFn
Optional predicate applied to each card in the stream.
When provided, the card is yielded only if this function returns true. This predicate is applied after all
structured stream options (filters, group exclusions, identity selection) have been evaluated.
Intended for advanced or ad-hoc use cases. Structured filters should be preferred where possible.
Optionalgroups
Exclude cards belonging to specific metadata groups.
A group is excluded by specifying false.
OptionalisExportable
When true, skip all non-exportable card entries; IE all decks, externals, proxy groups.
Optionallogger
Optional logger for diagnostics. If omitted, no logging is performed.
OptionaluniqueKeys
When provided, only cards whose composite identity matches one of these keys are yielded.
Any object implementing a has(key: string): boolean method may be used; IE Set, Map, or a custom lookup
structure.
Composite identity keys are created using uniqueCardKey.
OptionaluniqueOnce
When true, only the first card encountered for each unique key is yielded.
Options for Stream.Reader.asStream.