code: func (l *State) TypeOf(index int) Type {
  	return l.valueToType(l.indexToValue(index))
  }
docs: // TypeOf returns the type of the value at index, or TypeNone for a
  // non-valid (but acceptable) index.
  //
  // http://www.lua.org/manual/5.2/manual.html#lua_type