{"id":"cameronpcampbell/typebrick","name":"typebrick","scope":"cameronpcampbell","platform":"roblox","description":"A Type Function utility library for Roblox types.","version":"0.0.2","latest":"0.0.2","versions":["0.0.1","0.0.2"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"acf72124e09e298a1117f42b2f87f49c7fd6a5ad435f17007ab8c948b721f098","likes":0,"downloads":0,"install":"forest install cameronpcampbell/typebrick","url":"https://forest.dev/p/roblox/cameronpcampbell/typebrick","files":"https://api.forest.dev/ai/package/roblox/cameronpcampbell/typebrick/files","readme":"# Typebrick\nA Type Function utility library for Roblox.\n\nwally: https://wally.run/package/cameronpcampbell/typebrick\n\n> [!TIP]\n> Check out [Typeforge](https://github.com/typeforge-luau/typeforge), a type function utility library for Luau.\n\n## Docs\n\n### PropertiesOf(input: type) -> type\nReturns a table of properties for the given Roblox instance.\n\n```luau\ntype Result = PropertiesOf<Part>\n\n--[[\ntype Result = {\n    Anchored: boolean,\n    ... *TRUNCATED*\n]]\n```\n\n### MethodsOf(input: type) -> type\nReturns a table of methods for the given Roblox instance.\n\n```luau\ntype Result = MethodsOf<Part>\n\n--[[\ntype Result = {\n    AddTag: (Instance, string) -> nil,\n    ... *TRUNCATED*\n]]\n```\n\n### EventsOf(input: type) -> type\nReturns a table of events for the given Roblox instance.\n\n```luau\ntype Result = EventsOf<Part>\n\n--[[\ntype Result = {\n    AncestryChanged: {\n        Connect: t1,\n        ConnectParallel: (t2, (Instance, Instance?) -> ()) -> RBXScriptConnection,\n        Once: (t2, (Instance, Instance?) -> ()) -> RBXScriptConnection,\n        Wait: (t2) -> (Instance, Instance?)\n    },\n    ... *TRUNCATED*\n]]\n```\n\n### ChildrenOf(input: type) -> type\nReturns a table of children for the given Roblox instance.\n\n```luau\ntype Result = ChildrenOf<typeof(workspace.Part)>\n\n--[[\ntype Result = {\n    1: Attachment\n}\n]]\n```\n\n### DescendantsOf(input: type) -> type\nReturns a table of children for the given Roblox instance.\n\n```luau\ntype Result = DescendantsOf<typeof(workspace)>\n\n--[[\ntype Result = {\n    1: Part,\n    2: Camera,\n    3: Terrain,\n    4: Attachment\n}\n]]\n```","readmeTruncated":false}