Changelog
effector 20.16.1
guard
got Boolean
(a function) as filter
import {value createEvent, value createStore, value guard} from 'effector'
type User = {name: string}
const trigger = createEvent<User | null>()
const user = createStore<User>({name: 'alice'})
guard({
source: trigger,
filter: Boolean,
target: user,
})