ts-morph-structures

Home > ts-morph-structures > TypeStructureSet > replaceFromTypeArray

TypeStructureSet.replaceFromTypeArray() method

Replace all the types this set manages with those from another array.

Signature:

replaceFromTypeArray(array: (string | WriterFunction)[]): void;

Parameters

Parameter Type Description
array (string | WriterFunction)[] the types to add.

Returns:

void