[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [waitForChild](./js-utils.waitforchild.md) ## waitForChild() function > Warning: This API is now obsolete. > > there are better libraries for this, like zx > Signature: ```typescript export declare function waitForChild(child: ChildStreams): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | child | ChildStreams | | Returns: Promise<[ChildResult](./js-utils.childresult.md)>