mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
chore: bump deps
This commit is contained in:
parent
63a11cf462
commit
d1fa2cce92
3 changed files with 5 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ test("should observe items", function()
|
|||
local updates = {}
|
||||
local cleanups = {}
|
||||
|
||||
observe(items, function(_, key)
|
||||
observe(items, function(_, key: number)
|
||||
local get = computed(function()
|
||||
return items()[key]
|
||||
end)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ local React = require("./React")
|
|||
local function useSignalState<T>(getter: () -> T, dependencies: {}?): T
|
||||
local value, setValue = React.useState(getter)
|
||||
|
||||
React.useLayoutEffect(function()
|
||||
React.useLayoutEffect(function(): () -> ()
|
||||
return Charm.listen(getter, setValue :: (T, T?) -> ())
|
||||
end, dependencies :: { any } or {})
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ local function useSignalBinding<T>(getter: () -> T, dependencies: {}?)
|
|||
local initialValue = React.useMemo(getter, {})
|
||||
local binding, setBinding = React.useBinding(initialValue)
|
||||
|
||||
React.useLayoutEffect(function()
|
||||
React.useLayoutEffect(function(): () -> ()
|
||||
return Charm.listen(getter, setBinding :: (T, T?) -> ())
|
||||
end, dependencies :: { any } or {})
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[tools]
|
||||
wally = "UpliftGames/wally@0.3.2"
|
||||
rojo = "rojo-rbx/rojo@7.6.1"
|
||||
stylua = "johnnymorganz/stylua@2.4.1"
|
||||
luau-lsp = "johnnymorganz/luau-lsp@1.66.1"
|
||||
stylua = "johnnymorganz/stylua@2.5.2"
|
||||
luau-lsp = "johnnymorganz/luau-lsp@1.68.1"
|
||||
lute = "luau-lang/lute@1.0.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue