mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
fix: resolve type errors for new luau version
Some checks are pending
CI / analyze (push) Waiting to run
Some checks are pending
CI / analyze (push) Waiting to run
This commit is contained in:
parent
b05f3a9de6
commit
73fbfb2685
6 changed files with 13 additions and 13 deletions
|
|
@ -14,7 +14,7 @@ local React = require("./React")
|
|||
@return The current state.
|
||||
]]
|
||||
local function useSignalState<T>(getter: () -> T, dependencies: {}?): T
|
||||
local value, setValue = React.useState(getter)
|
||||
local value: T, setValue = React.useState(getter)
|
||||
|
||||
React.useLayoutEffect(function(): () -> ()
|
||||
return Charm.listen(getter, setValue :: (T, T?) -> ())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue