Function parseImageAssetId

  • Parses a Sanity image asset document ID into individual parts (type, id, extension, width, height)

    Parameters

    • documentId: string

      Image asset document ID to parse into named parts

    Returns SanityImageAssetIdParts

    Object of named properties

    If document ID invalid