backupRoswaal has moved to roswaal.app. These pages are a backup copy.Go to roswaal.app

Declare Type at TopLuau✎

Declares a Luau type above everything else in the generated file. Export it and other modules can use it with require. The definition is written as Luau, the way a Code Block is, because a type is not built from values and there are no nodes to build one from — { speed: number }, or "a" | "b". For a type that has to come after something, use Declare Type.

Pending review

<T>Declare Type at TopName it, and write the type
  • the language itself, so it works in Roblox and in Lune
  • terminal — it ends the flow it is in

What it compiles to

Info

This node opens a block, so an example without a body inside it would show less than it hid.

Not reviewed yet