refactor: avoid ambiguous optional function type

This commit is contained in:
littensy 2025-05-06 11:06:27 -07:00
parent 6bfd2f3d21
commit bcf02a615f

View file

@ -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?,
}