mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +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> = {
|
||||
fireImmediately: boolean?,
|
||||
equals: ((a: T, b: T?) -> boolean)?,
|
||||
onError: (error: unknown) -> ()?,
|
||||
scheduler: (fn: () -> ()) -> ()?,
|
||||
onError: ((error: unknown) -> ())?,
|
||||
scheduler: ((fn: () -> ()) -> ())?,
|
||||
once: boolean?,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue