mirror of
https://github.com/littensy/charm.git
synced 2026-10-22 12:41:37 +00:00
refactor: avoid ambiguous optional function type
This commit is contained in:
parent
6bfd2f3d21
commit
bcf02a615f
1 changed files with 2 additions and 2 deletions
|
|
@ -11,8 +11,8 @@ local test = suite.test
|
||||||
type ReactionOptions<T = unknown> = {
|
type ReactionOptions<T = unknown> = {
|
||||||
fireImmediately: boolean?,
|
fireImmediately: boolean?,
|
||||||
equals: ((a: T, b: T?) -> boolean)?,
|
equals: ((a: T, b: T?) -> boolean)?,
|
||||||
onError: (error: unknown) -> ()?,
|
onError: ((error: unknown) -> ())?,
|
||||||
scheduler: (fn: () -> ()) -> ()?,
|
scheduler: ((fn: () -> ()) -> ())?,
|
||||||
once: boolean?,
|
once: boolean?,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue