Skip to content

API Reference / @gtkx/testing / MatcherFunction

Type Alias: MatcherFunction ​

MatcherFunction = (content, widget) => boolean

Defined in: packages/testing/src/types.ts:11

A custom matcher predicate: given a candidate widget's normalized text content and the widget itself, returns whether it matches.

Parameters ​

content ​

string

widget ​

Gtk.Widget

Returns ​

boolean