[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [waitForChild](./js-utils.waitforchild.md)
## waitForChild() function
Wait for a child process to exit, collecting output, errors, and exit status.
Signature:
```typescript
export declare function waitForChild(child: ChildStreams): Promise;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| child | ChildStreams
| |
Returns:
`Promise`