The types read-only property of the DataTransfer interface returns the available types that exist in the items.
types
MDN Reference