[**@twipped/hooks**](../../README.md) • **Docs**

***

# Type alias: shouldDescendPredicate()

> **shouldDescendPredicate**\<\>: (`child`, `validElement`) => `undefined` \| `-1` \| `0` \| `1` \| `boolean`

## Type parameters

## Parameters

• **child**: [`Child`](Child.md)

The child element being iterated

• **validElement**: `boolean`

Indicates if the child is a valid react element

## Returns

`undefined` \| `-1` \| `0` \| `1` \| `boolean`

## Source

[hooks/children.js:116](https://github.com/Twipped/hooks/blob/main/hooks/children.js#L116)
