added definition for type-detect
Merge pull request #2375 from Bartvds/def/type-detect

added definition for type-detect