diff --git a/pesde.toml b/pesde.toml index 4aed8e5..992c462 100644 --- a/pesde.toml +++ b/pesde.toml @@ -1,5 +1,5 @@ name = "alicesaidhi/vide" -version = "0.3.1-lite.646" +version = "0.3.1-lite.656" description = "vide with types" authors = ["centau"] repository = "https://github.com/centau/vide" diff --git a/rokit.toml b/rokit.toml new file mode 100644 index 0000000..0fa05a8 --- /dev/null +++ b/rokit.toml @@ -0,0 +1,7 @@ +# This file lists tools managed by Rokit, a toolchain manager for Roblox projects. +# For more information, see https://github.com/rojo-rbx/rokit + +# New tools can be added by running `rokit add ` in a terminal. + +[tools] +rojo = "rojo-rbx/rojo@7.4.4" diff --git a/scripts/dump_types.py b/scripts/dump_types.py index 830c83c..46941d9 100644 --- a/scripts/dump_types.py +++ b/scripts/dump_types.py @@ -64,18 +64,18 @@ desired_classes = [ "Part", "Model", "MeshPart", - "Highlight" + "Highlight", + "Folder", ] lines_before = [ "type p ="+space+"T?|()->T", "type e()> ="+space+"T?", "type a={priority:"+space+"number,"+space+"callback:"+space+"(Instance)"+space+"->"+space+"()}", - "type recursive =T|{recursive}" - "type c =a|T|Recursive|()->Recursive", - "type ContentId = string", # temporary - "type Dictionary = {[string]: any}", - "type Array = {any}" + "type recursive =T|{read recursive}|()->recursive", + "type c =a|T|recursive", + "type Dictionary = {read [string]: any}", + "type Array = {read any}" ] lines_after = [ @@ -99,7 +99,7 @@ aliases = { "float": "number", "double": "number", "bool": "boolean", - "Content": "string", + "ContentId": "string", "string": "string"+space+"|"+space+"number", "OptionalCoordinateFrame": "CFrame?", "BinaryString": "string", diff --git a/src/create.luau b/src/create.luau index 764f5be..cf0acc8 100644 --- a/src/create.luau +++ b/src/create.luau @@ -3,8 +3,10 @@ local Instance = game and Instance or require "../test/mock".Instance :: never local defaults = require "./defaults" local apply = require "./apply" +local r = require "./roblox_types" local ctor_cache = {} :: { [string]: () -> Instance } +type Props = { [any]: any } setmetatable(ctor_cache :: any, { __index = function(self, class) @@ -39,7 +41,7 @@ local function clone_instance(instance: Instance) end end -local function create(class_or_instance: string | Instance, props: Props?): ((Props) -> Instance) | Instance +local function create(class_or_instance: string | Instance, props: Props?): ((any) -> Instance) | Instance local result: (Props) -> Instance if type(class_or_instance) == "string" then result = create_instance(class_or_instance) @@ -55,7 +57,6 @@ local function create(class_or_instance: string | Instance, props: Props?): ((Pr return result end -type Props = { [any]: any } return (create :: any) :: ( (class: "CanvasGroup") -> (r.vCanvasGroup) -> CanvasGroup ) & ( (class: "Frame") -> (r.vFrame) -> Frame ) @@ -105,3 +106,4 @@ return (create :: any) :: & ( (class: "Model") -> (r.vModel) -> Model ) & ( (class: "MeshPart") -> (r.vMeshPart) -> MeshPart ) & ( (class: "Highlight") -> (r.vHighlight) -> Highlight ) +& ( (class: "Folder") -> (r.vFolder) -> Folder ) diff --git a/src/init.luau b/src/init.luau index 8a27cd0..ba4782d 100644 --- a/src/init.luau +++ b/src/init.luau @@ -1,10 +1,61 @@ assert(game, "when using vide outside of Roblox, require lib.luau instead") local vide = require(script.lib) +local roblox_types = require(script.roblox_types) export type source = vide.source export type Source = vide.Source export type context = vide.context export type Context = vide.Context +export type vCanvasGroup = roblox_types.vCanvasGroup +export type vFrame = roblox_types.vFrame +export type vImageButton = roblox_types.vImageButton +export type vTextButton = roblox_types.vTextButton +export type vImageLabel = roblox_types.vImageLabel +export type vTextLabel = roblox_types.vTextLabel +export type vScrollingFrame = roblox_types.vScrollingFrame +export type vTextBox = roblox_types.vTextBox +export type vVideoFrame = roblox_types.vVideoFrame +export type vViewportFrame = roblox_types.vViewportFrame +export type vBillboardGui = roblox_types.vBillboardGui +export type vScreenGui = roblox_types.vScreenGui +export type vAdGui = roblox_types.vAdGui +export type vSurfaceGui = roblox_types.vSurfaceGui +export type vSelectionBox = roblox_types.vSelectionBox +export type vBoxHandleAdornment = roblox_types.vBoxHandleAdornment +export type vConeHandleAdornment = roblox_types.vConeHandleAdornment +export type vCylinderHandleAdornment = roblox_types.vCylinderHandleAdornment +export type vImageHandleAdornment = roblox_types.vImageHandleAdornment +export type vLineHandleAdornment = roblox_types.vLineHandleAdornment +export type vSphereHandleAdornment = roblox_types.vSphereHandleAdornment +export type vWireframeHandleAdornment = roblox_types.vWireframeHandleAdornment +export type vParabolaAdornment = roblox_types.vParabolaAdornment +export type vSelectionSphere = roblox_types.vSelectionSphere +export type vArcHandles = roblox_types.vArcHandles +export type vHandles = roblox_types.vHandles +export type vSurfaceSelection = roblox_types.vSurfaceSelection +export type vPath2D = roblox_types.vPath2D +export type vUIAspectRatioConstraint = roblox_types.vUIAspectRatioConstraint +export type vUISizeConstraint = roblox_types.vUISizeConstraint +export type vUITextSizeConstraint = roblox_types.vUITextSizeConstraint +export type vUICorner = roblox_types.vUICorner +export type vUIDragDetector = roblox_types.vUIDragDetector +export type vUIFlexItem = roblox_types.vUIFlexItem +export type vUIGradient = roblox_types.vUIGradient +export type vUIListLayout = roblox_types.vUIListLayout +export type vUIGridLayout = roblox_types.vUIGridLayout +export type vUIPageLayout = roblox_types.vUIPageLayout +export type vUITableLayout = roblox_types.vUITableLayout +export type vUIPadding = roblox_types.vUIPadding +export type vUIScale = roblox_types.vUIScale +export type vUIStroke = roblox_types.vUIStroke +export type vWorldModel = roblox_types.vWorldModel +export type vCamera = roblox_types.vCamera +export type vPart = roblox_types.vPart +export type vModel = roblox_types.vModel +export type vMeshPart = roblox_types.vMeshPart +export type vHighlight = roblox_types.vHighlight +export type vFolder = roblox_types.vFolder + return vide \ No newline at end of file diff --git a/src/roblox_types.luau b/src/roblox_types.luau index 6ad6f6f..c51cf3a 100644 --- a/src/roblox_types.luau +++ b/src/roblox_types.luau @@ -1,10 +1,10 @@ type p = T?|()->T type e()> = T? type a={priority: number, callback: (Instance) -> ()} -type recursive =T|{recursive}type c =a|T|Recursive|()->Recursive -type ContentId = string -type Dictionary = {[string]: any} -type Array = {any} +type recursive =T|{read recursive}|()->recursive +type c =a|T|recursive +type Dictionary = {read [string]: any} +type Array = {read any} export type vCanvasGroup = { GroupColor3: p, GroupTransparency: p, @@ -62,12 +62,12 @@ export type vCanvasGroup = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -127,23 +127,24 @@ export type vFrame = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } export type vImageButton = { - HoverImage: p, - Image: p, + HoverImage: p, + Image: p, ImageColor3: p, + ImageContent: p, ImageRectOffset: p, ImageRectSize: p, ImageTransparency: p, - PressedImage: p, + PressedImage: p, ResampleMode: p, ScaleType: p, SliceCenter: p, @@ -214,12 +215,12 @@ export type vImageButton = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -307,18 +308,19 @@ export type vTextButton = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } export type vImageLabel = { - Image: p, + Image: p, ImageColor3: p, + ImageContent: p, ImageRectOffset: p, ImageRectSize: p, ImageTransparency: p, @@ -381,12 +383,12 @@ export type vImageLabel = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -463,29 +465,29 @@ export type vTextLabel = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } export type vScrollingFrame = { AutomaticCanvasSize: p, - BottomImage: p, + BottomImage: p, CanvasPosition: p, CanvasSize: p, ElasticBehavior: p, HorizontalScrollBarInset: p, - MidImage: p, + MidImage: p, ScrollBarImageColor3: p, ScrollBarImageTransparency: p, ScrollBarThickness: p, ScrollingDirection: p, ScrollingEnabled: p, - TopImage: p, + TopImage: p, VerticalScrollBarInset: p, VerticalScrollBarPosition: p, Active: p, @@ -542,12 +544,12 @@ export type vScrollingFrame = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -635,12 +637,12 @@ export type vTextBox = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -648,7 +650,7 @@ export type vVideoFrame = { Looped: p, Playing: p, TimePosition: p, - Video: p, + Video: p, Volume: p, DidLoop: e<(video:string | number) -> ()>, Ended: e<(video:string | number) -> ()>, @@ -709,12 +711,12 @@ export type vVideoFrame = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -779,12 +781,12 @@ export type vViewportFrame = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -822,12 +824,12 @@ export type vBillboardGui = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -853,19 +855,19 @@ export type vScreenGui = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } export type vAdGui = { AdShape: p, EnableVideoAds: p, - FallbackImage: p, + FallbackImage: p, Active: p, Adornee: p, Face: p, @@ -885,12 +887,12 @@ export type vAdGui = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -924,12 +926,12 @@ export type vSurfaceGui = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -946,12 +948,12 @@ export type vSelectionBox = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -975,12 +977,12 @@ export type vBoxHandleAdornment = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1005,12 +1007,12 @@ export type vConeHandleAdornment = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1037,17 +1039,17 @@ export type vCylinderHandleAdornment = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } export type vImageHandleAdornment = { - Image: p, + Image: p, Size: p, AdornCullingMode: p, AlwaysOnTop: p, @@ -1067,12 +1069,12 @@ export type vImageHandleAdornment = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1097,12 +1099,12 @@ export type vLineHandleAdornment = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1126,12 +1128,12 @@ export type vSphereHandleAdornment = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1155,12 +1157,12 @@ export type vWireframeHandleAdornment = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1174,12 +1176,12 @@ export type vParabolaAdornment = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1195,12 +1197,12 @@ export type vSelectionSphere = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1220,12 +1222,12 @@ export type vArcHandles = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1246,12 +1248,12 @@ export type vHandles = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1266,12 +1268,12 @@ export type vSurfaceSelection = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1287,12 +1289,12 @@ export type vPath2D = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1305,12 +1307,12 @@ export type vUIAspectRatioConstraint = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1322,12 +1324,12 @@ export type vUISizeConstraint = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1339,12 +1341,12 @@ export type vUITextSizeConstraint = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1355,20 +1357,20 @@ export type vUICorner = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } export type vUIDragDetector = { - ActivatedCursorIcon: p, + ActivatedCursorIcon: p, BoundingBehavior: p, BoundingUI: p, - CursorIcon: p, + CursorIcon: p, DragAxis: p, DragRelativity: p, DragRotation: p, @@ -1393,12 +1395,12 @@ export type vUIDragDetector = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1412,12 +1414,12 @@ export type vUIFlexItem = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1432,12 +1434,12 @@ export type vUIGradient = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1456,12 +1458,12 @@ export type vUIListLayout = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1479,12 +1481,12 @@ export type vUIGridLayout = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1510,12 +1512,12 @@ export type vUIPageLayout = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1533,12 +1535,12 @@ export type vUITableLayout = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1552,12 +1554,12 @@ export type vUIPadding = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1568,12 +1570,12 @@ export type vUIScale = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1589,12 +1591,12 @@ export type vUIStroke = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1607,12 +1609,12 @@ export type vWorldModel = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1634,12 +1636,12 @@ export type vCamera = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1648,6 +1650,7 @@ export type vPart = { Anchored: p, AssemblyAngularVelocity: p, AssemblyLinearVelocity: p, + AudioCanCollide: p, BackSurface: p, BottomSurface: p, BrickColor: p, @@ -1684,12 +1687,12 @@ export type vPart = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1702,20 +1705,22 @@ export type vModel = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } export type vMeshPart = { - TextureID: p, + TextureContent: p, + TextureID: p, Anchored: p, AssemblyAngularVelocity: p, AssemblyLinearVelocity: p, + AudioCanCollide: p, BackSurface: p, BottomSurface: p, BrickColor: p, @@ -1752,12 +1757,12 @@ export type vMeshPart = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c } @@ -1774,13 +1779,28 @@ export type vHighlight = { Parent: p, AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, AttributeChanged: e<(attribute:string | number) -> ()>, - Changed: e<(property:string | number) -> ()>, ChildAdded: e<(child:Instance?) -> ()>, ChildRemoved: e<(child:Instance?) -> ()>, DescendantAdded: e<(descendant:Instance?) -> ()>, DescendantRemoving: e<(descendant:Instance?) -> ()>, Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, [number]: c +} +export type vFolder = { + Archivable: p, + Name: p, + Parent: p, + AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>, + AttributeChanged: e<(attribute:string | number) -> ()>, + ChildAdded: e<(child:Instance?) -> ()>, + ChildRemoved: e<(child:Instance?) -> ()>, + DescendantAdded: e<(descendant:Instance?) -> ()>, + DescendantRemoving: e<(descendant:Instance?) -> ()>, + Destroying: e<() -> ()>, + Changed: e<(property:string | number) -> ()>, + [number]: c + } return{} \ No newline at end of file diff --git a/test/tests.luau b/test/tests.luau index d4c95ae..e7d10c6 100644 --- a/test/tests.luau +++ b/test/tests.luau @@ -5,8 +5,8 @@ local mock = require "./mock" local Instance, Signal = mock.Instance, mock.Signal local Vector2, UDim2 = mock.Vector2, mock.UDim2 -local vide = require "../../vide" -local graph = require "../../vide/src/graph" +local vide = require "../src/lib" +local graph = require "../src/graph" type Node = graph.Node type Map = { [K] : V } diff --git a/wally.toml b/wally.toml index 3eece77..2be6952 100644 --- a/wally.toml +++ b/wally.toml @@ -2,7 +2,7 @@ name = "alicesaidhi/vide" description = "Fork of vide, comes with Roblox Instance Types" license = "MIT" -version = "0.3.1-lite.649" +version = "0.3.1-lite.656" registry = "https://github.com/UpliftGames/wally-index" realm = "shared" include = ["default.project.json", "LICENSE", "src"]