Blockbench Reference Docs
    Preparing search index...
    interface ExportOptions {
        content?: string | ArrayBuffer | Blob;
        custom_writer?: (
            content: string | ArrayBuffer | Blob,
            file_path: string,
            callback?: (file_path: string) => void,
        ) => void;
        extensions: string[];
        name?: string;
        resource_id?: string;
        savetype?: WriteType | ((file: string) => WriteType);
        startpath?: string;
        type: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    content?: string | ArrayBuffer | Blob
    custom_writer?: (
        content: string | ArrayBuffer | Blob,
        file_path: string,
        callback?: (file_path: string) => void,
    ) => void
    extensions: string[]

    File extensions

    name?: string

    Suggested file name

    resource_id?: string

    The resource identifier group, used to allow the file dialog (open and save) to remember where it was last used

    savetype?: WriteType | ((file: string) => WriteType)
    startpath?: string

    Directory path where the file dialog opens

    type: string

    Name of the file type