Elementtype
{
readonly type: string | ((props: P) => Elements | null);
readonly props: P;
readonly key: string | null;
readonly $$typeof?: symbol;
}| Property | Type | |
|---|---|---|
.type | string((props: P) => Elementsnull) | required readonly |
.props | P | required readonly |
.key | stringnull | required readonly |
.$$typeof | symbol | readonly |
| Type | |
|---|---|
Elements | Collection of elements (compatible with React.ReactNode). |
Element with a type, props, and optional key (compatible with React.ReactElement).
- Declared as a
type, not aninterface, so its implicit index signature lets it satisfyData—queryElements()runs elements throughqueryItems().