API Reference / @gtkx/testing / MatcherOptions
Type Alias: MatcherOptions<T>
MatcherOptions<
T> =object&WaitForOptions
Defined in: packages/testing/dist/types.d.ts:39
Options controlling text matching and, for asynchronous queries, polling behavior.
Type Declaration
as?
optionalas?:WidgetType<T>
Restricts matches to instances of this widget class, and narrows the query's return type to it.
collapseWhitespace?
optionalcollapseWhitespace?:boolean
Forwarded to the default normalizer when no custom normalizer is given.
exact?
optionalexact?:boolean
When true (the default), require an exact match; when false, match case-insensitively as a substring.
normalizer?
optionalnormalizer?:NormalizerFn
Custom normalizer replacing the default; cannot be combined with trim or collapseWhitespace.
suggest?
optionalsuggest?:boolean
Whether to include a suggested better query in error messages.
trim?
optionaltrim?:boolean
Forwarded to the default normalizer when no custom normalizer is given.
Type Parameters
T
T extends Gtk.Widget = Gtk.Widget