mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
chore: fix react tests, run stylua
This commit is contained in:
parent
91ef244ef3
commit
5157975091
3 changed files with 6 additions and 3 deletions
5
packages/charm/src/index.d.ts
vendored
5
packages/charm/src/index.d.ts
vendored
|
|
@ -76,7 +76,10 @@ export function signal<T>(
|
|||
equals?: Equals<T>,
|
||||
): LuaTuple<[getter: () => T, setter: (newValue: T | ((currentValue: T) => T)) => T]>;
|
||||
export function signal<T>(): LuaTuple<
|
||||
[getter: () => T | undefined, setter: (newValue: T | undefined | ((currentValue?: T) => T | undefined)) => T | undefined]
|
||||
[
|
||||
getter: () => T | undefined,
|
||||
setter: (newValue: T | undefined | ((currentValue?: T) => T | undefined)) => T | undefined,
|
||||
]
|
||||
>;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
_G.__ROACT_17_MOCK_SCHEDULER__ = true
|
||||
|
||||
local React = require("../../../React")
|
||||
local ReactRoblox = require("../../../ReactRoblox")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
local test = require("../../../tests/test")
|
||||
|
||||
_G.__ROACT_17_MOCK_SCHEDULER__ = true
|
||||
|
||||
test.describe("useSignalState", function()
|
||||
require("@self/useSignalState.test")
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue