Skip to main content

writeTentative

Summary

Writes before and after messages if and only if mayWrite writes anything. If mayWrite writes “CONTENT”, this method will write “CONTENT”. If mayWrite writes nothing, this method will write nothing.

Signature

writeTentative(before: string, after: string, mayWrite: () => void): void;

Parameters

before

Type:string

after

Type:string

mayWrite

Type:() => void

Returns

Type:void Writes and messages if and only if writes anything.If writes “CONTENT”, this method will write “CONTENT”. If writes nothing, this method will write nothing.