File tree 5 files changed +6
-11
lines changed
5 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " firelord" ,
3
- "version" : " 2.8.16 " ,
3
+ "version" : " 2.8.17 " ,
4
4
"description" : " 🔥 Write V9 like Firestore Admin code with extreme type safety." ,
5
5
"author" : " tylim" ,
6
6
"license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -7,5 +7,4 @@ import { Delete } from '../types'
7
7
*
8
8
* @return The FieldValue sentinel for use in a call to set() or update().
9
9
*/
10
- // @ts -expect-error
11
- export const deleteField = ( ) : Delete => FieldValue . delete ( )
10
+ export const deleteField = ( ) => FieldValue . delete ( ) as Delete
Original file line number Diff line number Diff line change 1
- import { __name__ } from '../types'
2
-
3
1
/**
4
2
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
5
3
* It can be used in queries to sort or filter by the document ID.
6
4
* documentId() no longer play any significant role because you can replace it with string `__name__`.
7
5
* It is kept for backward compatibility.
8
6
*/
9
- export const documentId = ( ) : __name__ => '__name__'
7
+ export const documentId = ( ) => '__name__' as const
Original file line number Diff line number Diff line change @@ -18,5 +18,4 @@ import { Increment } from '../types'
18
18
* @return The FieldValue sentinel for use in a call to set(), create() or
19
19
* update().
20
20
*/
21
- // @ts -expect-error
22
- export const increment = ( n : number ) : Increment => FieldValue . increment ( n )
21
+ export const increment = ( n : number ) => FieldValue . increment ( n ) as Increment
Original file line number Diff line number Diff line change @@ -9,6 +9,5 @@ import { ServerTimestamp } from '../types'
9
9
* update().
10
10
*/
11
11
12
- export const serverTimestamp = ( ) : ServerTimestamp =>
13
- // @ts -expect-error
14
- FieldValue . serverTimestamp ( )
12
+ export const serverTimestamp = ( ) =>
13
+ FieldValue . serverTimestamp ( ) as ServerTimestamp
You can’t perform that action at this time.
0 commit comments