Changelog
effector 22.7.0
Declaration
type, provide missing top-level properties for region
and factory
typesid
to Declaration
typeChangelog
effector-react 22.5.1
<Gate />
will also be isomorphic by scope.Changelog
effector 22.4.1
source
. This case now supported and typechecked correctly:const profileFormSubmitted = createEvent()
const $name = createStore('alice')
const $age = createStore(0)
const saveProfileFx = createEffect(async ([name, age]: [string, number]) => {})
sample({
clock: profileFormSubmitted,
source: [$name, $age] as const,
target: saveProfileFx,
})
Note that the one need to use "as const" in that case to got correct typechecking because without it typescript cannot infer the type [Store<string>, Store<number>]
. We are working to avoid that limitation, stay tuned!