Avena Webapp API - v0.0.1
    Preparing search index...

    Function pickSaveFile

    • Opens the browser's save dialog for a CSV file, if the browser has one.

      Must be called synchronously from a user gesture (a click or submit handler, before any await), or the browser refuses it.

      Parameters

      • suggestedName: string

        File name offered in the dialog.

      • scope: unknown = globalThis

        Object holding showSaveFilePicker; window unless a test passes one.

      Returns Promise<SaveFileHandle> | null

      The dialog's promise (it rejects with an AbortError when the user cancels), or null when the browser has no save dialog.