#Should I make a lite version of Knit

1 messages · Page 1 of 1 (latest)

hollow parcel
#

And make it ez to use in luau or Lua with --!strict
@.c..z_.

#

@solid zodiac

solid zodiac
#

if u want to, idk

hollow parcel
cerulean ruin
#

if u want to, idk

solid zodiac
hollow parcel
hollow parcel
cerulean ruin
#

i dont use knit

hollow parcel
#

the original ive seen snippets on some game devs that used it

solid zodiac
hollow parcel
#

And the script analysis

#

So I can make the Knit so it doesn't have the type errors

#

Like

export type Connection = {
    Connect: boolean,
    Disconnect: (self: Connection) -> ()
}
export type Signal<T...> = {
    _connections: { fn: (T...), Connect: boolean, Disconnect: (self: Connection) -> boolean},
   -- the other types
}
hollow parcel
hollow parcel
# cerulean ruin i dont use knit

sad i cant do
the other lua function Signal:Fire<T...>(...: T...) for _, data: _ConnectionEntry<T...> in pairs(self._connections) do if data.conn.Connected then task.spawn(data.fn, ...) end end end
but the way i have it now it works

hollow parcel
#

@solid zodiac finally i got it working

hollow parcel
cerulean ruin
#

i don't use knit, maybe it works for you? idk im not your mom