[firestore][types] 'array-contains' support

This commit is contained in:
Salakar
2018-09-20 13:20:55 +01:00
parent 19283b92d0
commit bf78fd8775
2 changed files with 9 additions and 2 deletions

2
src/index.d.ts vendored
View File

@@ -2670,7 +2670,7 @@ declare module 'react-native-firebase' {
}
type QueryDirection = 'asc' | 'ASC' | 'desc' | 'DESC';
type QueryOperator = '=' | '==' | '>' | '>=' | '<' | '<=';
type QueryOperator = '=' | '==' | '>' | '>=' | '<' | '<=' | 'array-contains';
interface TypeMap {
type:

View File

@@ -8,7 +8,14 @@ export type MetadataChanges = {|
export type QueryDirection = 'DESC' | 'desc' | 'ASC' | 'asc';
export type QueryOperator = '<' | '<=' | '=' | '==' | '>' | '>=';
export type QueryOperator =
| '<'
| '<='
| '='
| '=='
| '>'
| '>='
| 'array-contains';
export type GetOptions = {
source: 'default' | 'server' | 'cache',