find all index-types (i.e. tables/collection ) within index (database) in elastic search using js api

I want to find all types of an Index in elastic search, I have search for this , and I have found, it is possible through getMapping , but getMapping gives data-types as well as types of index , but I want to get only available types of an Index, if there is any way to get this only , please suggest,

Thanks in advance...