Skip to content

FileSystemAdapter.exportTextFile method

FileSystemAdapter › exportTextFile

Unofficial

Exports text as a plain-text download.

Signature:

exportTextFile(text: string, filename: string): Promise<void>

Parameters:

ParameterTypeDescription
textstringThe text to export.
filenamestringThe suggested file name.

Returns: Promise<void> — A promise that resolves after the download is started.