Skip to content

Function: writeBackupFile()

writeBackupFile\<T>(dir, filename, envelope, format): void

Defined in: src/backup/io.ts:27

Serialize envelope and write to dir/filename.{json|yaml}. Creates dir if needed.

Type Parameters

T

T

Parameters

dir

string

filename

string

envelope

BackupEnvelope\<T>

format

BackupFormat

Returns

void