Skip to content

Improve Instance Types - #69

Open
gaymeowing wants to merge 15 commits into
ffrostfall:mainfrom
gaymeowing:hydrate
Open

gaymeowing wants to merge 15 commits into
ffrostfall:mainfrom
gaymeowing:hydrate

Conversation

@gaymeowing

@gaymeowing gaymeowing commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor
  • gives fluid.bind() types
  • allow providing an instance type to PropertiesFor<> ie PropertiesFor<Frame>
  • publicly expose GetInstance
  • allow for passing any & unknown to GetInstance & PropertiesFor
  • actually get the type of :Connect() for RBXScriptSignals using an extern type, as it turns out its possible to do in roblox
  • remove metatable checking for luau-lsp RBXScriptSignals as it does nothing because they don't have metatables
  • inline get_connect and is_signal
  • allow for providing default properties to PropertiesFor<> via intersections ie Frame & { Name: "Divider" } as a nice alternative to fluid having default properties at runtime
    also validates said default properties to ensure they are a subtype of the value of the property on the instance
  • adds UIBlur, ParticleEmitter, and ParticleEmitter2D to the Instances table

Closes #64

gaymeowing and others added 8 commits September 18, 2026 20:15
Signed-off-by: quaywinn <62822174+gaymeowing@users.noreply.github.com>
* remove hydrate (its just bind)
* export is_signal from the instances types.luau (so it can be used in my style sheet wrapper thingy)
* make PropertiesFor accept intsersection types, mainly for use with fake generic constraints
* make the properties table start off as an actual table, so each property set doesnt have to go through methods
* use readindexers instead of indexers on the table types created by PropertiesFor
* remove empty table from PropertiesFor
* add a type function for getting an array of read only property indexers (this is so my style sheets wrapper branch doesnt have to duplicate the table)
* rename first argument of bind to instance because inst is weird
@gaymeowing gaymeowing changed the title Add hydrate Give Bind types Sep 27, 2026
* allow for passing `any` & `unknown` to GetInstance & PropertiesFor
* actually get the type of :Connect() for RBXScriptSignals using an extern type, as it turns out its possible to do in roblox
* allow for providing default properties to PropertiesFor<> via intersections `Frame & { Name: "Divider" }` as a nice alternative to fluid having default properties at runtime
@gaymeowing gaymeowing changed the title Give Bind types Improve Instance Types Oct 13, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants