micro:bit connection library
    Preparing search index...
    interface FlashOptions {
        minimumProgressIncrement?: number;
        partial?: boolean;
        progress?: ProgressCallback;
        signal?: AbortSignal;
    }
    Index
    minimumProgressIncrement?: number

    Smallest possible progress increment to limit callback rate.

    partial?: boolean

    True to use a partial flash where possible, false to force a full flash. Default: true.

    progress?: ProgressCallback

    Optional progress callback for tracking connection and flash stages.

    Requesting a partial flash doesn't guarantee one is performed. Partial flashes are avoided if too many blocks have changed and failed partial flashes are retried as full flashes. The partial parameter reports the flash type currently in progress.

    signal?: AbortSignal

    Optional AbortSignal to abort the flash operation. When aborted, the flash promise will reject with a DeviceError with code "aborted".

    Note: Currently only aborts during the FindingDevice stage on native platforms. Once a device is found and flashing begins, the operation cannot be aborted.