More actions
Add return values from GrandpaScout's VSCode documentation Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
| Line 77: | Line 77: | ||
{{:Type/returns|ViewerAPI}} | {{:Type/returns|ViewerAPI}} | ||
{{:Type/returns|WorldAPI}} | {{:Type/returns|WorldAPI}} | ||
== Navigation == | |||
{{Navbox documentation}} | |||
Latest revision as of 17:15, 27 October 2024
This global replaces the built-in Lua function of the same name.
| Arguments | Returns |
|---|---|
| v: any | string |
The type(v) function returns a string representing the type of the passed object v.
Return values
The type function can return the following values.
"nil"(nil)"number"(number)"string"(string)"boolean"(boolean)"table"(table)"function"(function)"Action"(Action)"ActionWheelAPI"(ActionWheelAPI)"Animation"(Animation)"AnimationAPI"(AnimationAPI)"AvatarAPI"(AvatarAPI)"Biome"(Biome)"BlockState"(BlockState)"BlockTask"(BlockTask)"ClientAPI"(ClientAPI)"ConfigAPI"(ConfigAPI)"EntityAPI"(EntityAPI)"EntityNameplateCustomization"(EntityNameplateCustomization)"Event"(Event)"EventsAPI"(EventsAPI)"HostAPI"(HostAPI)"ItemStack"(ItemStack)"ItemTask"(ItemTask)"Keybind"(Keybind)"KeybindAPI"(KeybindAPI)"LivingEntityAPI"(LivingEntityAPI)"MatricesAPI"(MatricesAPI)"Matrix2"(Matrix2)"Matrix3"(Matrix3)"Matrix4"(Matrix4)"ModelPart"(ModelPart)"NameplateAPI"(NameplateAPI)"NameplateCustomization"(NameplateCustomization)"NameplateCustomizationGroup"(NameplateCustomizationGroup)"NullEntity"(NullEntity)"Page"(Page)"Particle"(Particle)"ParticleAPI"(ParticleAPI)"PingAPI"(PingAPI)"PingFunction"(PingFunction)"PlayerAPI"(PlayerAPI)"RenderTask"(RenderTask)"RendererAPI"(RendererAPI)"Sound"(Sound)"SoundAPI"(SoundAPI)"SpriteTask"(SpriteTask)"TextTask"(TextTask)"Texture"(Texture)"TextureAPI"(TextureAPI)"TextureAtlas"(TextureAtlas)"VanillaModelAPI"(VanillaModelAPI)"VanillaModelGroup"(VanillaModelGroup)"VanillaModelPart"(VanillaModelPart)"VanillaPart"(VanillaPart)"Vector2"(Vector2)"Vector3"(Vector3)"Vector4"(Vector4)"VectorsAPI"(VectorsAPI)"Vertex"(Vertex)"ViewerAPI"(ViewerAPI)"WorldAPI"(WorldAPI)
| Documentation | |||||
|---|---|---|---|---|---|
| Globals | |||||
| APIs (Types) | |||||
| Visuals (Types) | |||||
| Other Types | |||||
| Enums | |||||