Sanity Library Reference Docs
    Preparing search index...

    Interface MediaLibraryAssetAspectDocument

    A document representing a Media Library asset aspect.

    Each aspect provides a schema describing custom data that can be assigned to assets.

    interface MediaLibraryAssetAspectDocument {
        _createdAt?: string;
        _id: string;
        _rev?: string;
        _system?: { delete?: boolean };
        _type: "sanity.asset.aspect";
        _updatedAt?: string;
        assetType?: MediaLibraryAssetType[];
        definition: FieldDefinition;
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown
    Index

    Properties

    _createdAt?: string
    _id: string
    _rev?: string
    _system?: { delete?: boolean }
    _type: "sanity.asset.aspect"
    _updatedAt?: string
    assetType?: MediaLibraryAssetType[]

    Asset types the aspect can be assigned to.

    If no assetType is defined, the aspect may be assigned to any asset type.

    definition: FieldDefinition