Rush StackShopBlogEvents
Skip to main content

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

TerminalWritable

The destination to remove.

close

boolean

(Optional) If true (default), the destination will be closed when removed, unless destination.preventAutoclose is set to true.

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.