2.8.5
-
export
ArrayUnionOrRemove
type -
fix discriminated union value is inferred as
never
inwhere
clause
import {
MetaTypeCreator,
query,
where,
} from 'firelordjs'
type DU = MetaTypeCreator<
{ a: { b: 1; c: 2 } | { b: 'a'; d: 'b' } },
'abc'
>
const du = getFirelord<DU>(getFirestore(), 'abc')
query(du.collection(), where('a.b', '==', 2)) // previously no error but is expected to error