Skip to content

Missing properties format in DownloadOptions #416

@AnthonyGrahl

Description

@AnthonyGrahl

When using download on a CaptureResult, we can't use format in .tsx file.
Property is not declared properly in snapdom.d.ts (error TS2353 on Visual Studio Pro 2026 in strictMode).

Quick demo to reproduce

const result = await snapdom(element, { scale: 1, quality: 1 });
await result.download({ format: "jpg", filename: "print.jpg" });

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: mediumFeature partially broken or degraded, workaround exists

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions