Type alias AccessorParamsType<Component>

AccessorParamsType<Component>: QueryType<Component> | [QueryType<Component>, ParamsType<Component>]

Parameters of accessors in the format of react-shallow-search. It can be an query object

{ component: "div", className: "foo", props: { title: "bar" } }

or a tupple of query object and additional parameters

[
{ component: "div", className: "foo", props: { title: "bar" } },
{ getChildren: (element) => [], match: (element, query) => true }
]

Type Parameters

  • Component extends keyof JSX.IntrinsicElements | ComponentType<any>

Generated using TypeDoc