Penpot plugins API
    Preparing search index...

    Interface FileVersion

    Type defining the file version properties.

    interface FileVersion {
        label: string;
        createdBy?: User;
        createdAt: Date;
        isAutosave: boolean;
        restore(): void;
        remove(): Promise<void>;
        pin(): Promise<FileVersion>;
    }
    Index

    Properties

    label: string

    The current label to identify the version.

    createdBy?: User

    The user that created the version. If not present, the version is an autosave.

    createdAt: Date

    The date when the version was created.

    isAutosave: boolean

    If the current version has been generated automatically.

    Methods

    • Remove the current version. Requires the content:write permission.

      Returns Promise<void>