Function parseFileAssetUrl

  • Parses a full Sanity file asset URL into individual parts (type, project ID, dataset, id, extension, width, height)

    Parameters

    • url: string

      Full URL to parse into named parts

    Returns SanityFileUrlParts

    Object of named properties

    If URL is invalid or not a Sanity file asset URL