Skip to content

Commit

Permalink
releasing new version
Browse files Browse the repository at this point in the history
  • Loading branch information
tylim88 committed Mar 24, 2024
1 parent c5c2f35 commit 173d334
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firelordjs",
"version": "2.8.6",
"version": "2.8.7",
"description": "🔥 High Precision Typescript Wrapper for Firestore Web, Providing Unparalleled Type Safe and Dev Experience",
"author": "tylim",
"license": "MIT",
Expand Down
16 changes: 0 additions & 16 deletions src/abc.ts

This file was deleted.

9 changes: 7 additions & 2 deletions src/tests/discriminatedUnion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,18 @@ describe('test discrimination unions', () => {
// @ts-expect-error
updateDoc(docRef, data)

updateDoc(docRef, { random: { k: { '1': 1, '2': 2 } } })
updateDoc(docRef, { x: { k: { '1': 1, '2': 2 } } })

const a = { m: '1' as '1' | '2' | '3' }

const b = a.m

updateDoc(docRef, { random: { k: { [b]: 1 } } })
const c = {
x: { k: { [b]: 1 as const } as const } as const,
} as const
// ! should not error but this seem like TS fault
// @ts-expect-error
updateDoc(docRef, c)
}
})

Expand Down

0 comments on commit 173d334

Please sign in to comment.