docs: function(type){
              type = this.string(type);
              if(types.indexOf(type.toLowerCase()) < 0){
                  throw new TypeError('a type in [' + types.join(', ') + '] is expected, but ' + type + ' given');
              }
              return type.toLowerCase();
          }