Skip to content

Type ​

Types ​

Function type ​

luau
type Function = (...any) -> ...any

Dict type ​

luau
type Dict<T> = { [T]: any }

Set type ​

luau
type Set<T> = { [T]: boolean }

Symbol type ​

luau
type Symbol = { type: "Symbol" }

New type ​

luau
type New<Name, Class> = (Name) -> (Class & Dict<any>) -> Class

BaseConstructors type ​

luau
type BaseConstructors = New<"Folder", Folder>
	& New<"BillboardGui", BillboardGui>
	& New<"CanvasGroup", CanvasGroup>
	& New<"Frame", Frame>
	& New<"ImageButton", ImageButton>
	& New<"ImageLabel", ImageLabel>
	& New<"ScreenGui", ScreenGui>
	& New<"ScrollingFrame", ScrollingFrame>
	& New<"SurfaceGui", SurfaceGui>
	& New<"TextBox", TextBox>
	& New<"TextButton", TextButton>
	& New<"TextLabel", TextLabel>
	& New<"UIAspectRatioConstraint", UIAspectRatioConstraint>
	& New<"UICorner", UICorner>
	& New<"UIDragDetector", UIDragDetector>
	& New<"UIFlexItem", UIFlexItem>
	& New<"UIGradient", UIGradient>
	& New<"UIGridLayout", UIGridLayout>
	& New<"UIListLayout", UIListLayout>
	& New<"UIPadding", UIPadding>
	& New<"UIPageLayout", UIPageLayout>
	& New<"UIScale", UIScale>
	& New<"UISizeConstraint", UISizeConstraint>
	& New<"UIStroke", UIStroke>
	& New<"UITableLayout", UITableLayout>
	& New<"UITextSizeConstraint", UITextSizeConstraint>
	& New<"VideoFrame", VideoFrame>
	& New<"ViewportFrame", ViewportFrame>
	& New<string, Instance>
	& { [Symbol]: Dict<any> }

Constructor type ​

luau
type Constructor = (<T>(T & Instance) -> (T & Dict<any>) -> T) & BaseConstructors

Animatable type ​