Function parseFileAssetId

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

    Parameters

    • documentId: string

      File asset document ID to parse into named parts

    Returns SanityFileAssetIdParts

    Object of named properties

    If document ID invalid