Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/terminal > TerminalWritable > onClose

TerminalWritable.onClose() method

Subclasses can override this empty method to perform additional operations such as closing a file handle.

Signature:

/** @virtual */
protected onClose(): void;

Returns:

void

Remarks

It is guaranteed that this method will be called at most once during the lifetime of a TerminalWritable object.