invoke

operator fun <TData> NormalFunction<TData>.invoke(vararg params: Any?): TData

优化函数调用形式,将导出的函数伪装成普通函数的样子,无需对参数进行arrayOf,可能需要手动导包:

import xyz.junerver.compose.hooks.invoke

operator fun VoidFunction.invoke(vararg params: Any?)
operator fun SetValueFn<SetterEither<Int>>.invoke(leftValue: Int)
operator fun SetValueFn<SetterEither<Int>>.invoke(rightValue: (Int) -> Int)