返回 Skill 列表
extension
分类: 开发与工程无需 API Key

roblox-ts

在使用roblox-ts为Roblox编写TypeScript代码时使用,尤其是在不确定是否存在JavaScript API或如何处理Luau互操作性的情况下

person作者: jakexiaohubgithub

Based on roblox-ts v3.0.0, generated 2026-01-31

TypeScript-to-Luau transpiler for Roblox. This is "Roblox with TypeScript syntax", not full JavaScript - many JS APIs don't exist.

Core References

| Topic | Description | Reference | | -------------- | ------------------------------------------------------- | -------------------------------------------------------- | | JS Differences | Missing APIs, assert() truthiness, any type, typeof | core-js-differences | | Type Checking | typeIs, classIs, RemoteEvent validation | core-type-checking | | Constructors | new syntax, DataType math (.add/.sub), collections | core-constructors | | Utility Types | satisfies, InstancePropertyNames, Services, ExtractKeys | core-utility-types |

Features

| Topic | Description | Reference | | -------------- | --------------------------------------------------------- | -------------------------------------------------------------- | | Luau Interop | $tuple, LuaTuple, type declarations, callbacks vs methods | feature-luau-interop | | Game Hierarchy | Typing Workspace children with services.d.ts | feature-game-hierarchy |