Skip to content

2.8.5

Compare
Choose a tag to compare
@tylim88 tylim88 released this 23 Mar 18:33
· 16 commits to main since this release
  1. export ArrayUnionOrRemove type

  2. fix discriminated union value is inferred as never in where 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