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 21dc081 commit 7e245b7
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": "firelord",
"version": "2.8.6",
"version": "2.8.7",
"description": "🔥 Write V9 like Firestore Admin code with extreme type safety.",
"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 7e245b7

Please sign in to comment.