Home > @rushstack/terminal > SplitterTransform > removeDestination
SplitterTransform.removeDestination() method
Removes a destination from the set of destinations. It will no longer receive chunks, and will be closed, unless destination.preventAutoclose is set to true.
Signature:
removeDestination(destination: TerminalWritable, close?: boolean): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
destination | The destination to remove. | |
close | boolean | (Optional) If |
Returns:
boolean
true if the destination was removed, false if it was not found.
Remarks
If the destination is not found, it will not be closed.