(value: any, priority: string | number, onComplete?: (error: FirebaseError) => void)
| 140 | } |
| 141 | |
| 142 | setWithPriority(value: any, priority: string | number, onComplete?: (error: FirebaseError) => void): Promise<void> { |
| 143 | return new Promise((resolve, reject) => { |
| 144 | this.native.onDisconnectSetValueAndPriorityWithCompletionBlock(serializeItems(value), priority, (error, ref) => { |
| 145 | if (error) { |
| 146 | const err = FirebaseError.fromNative(error); |
| 147 | onComplete?.(err); |
| 148 | reject(err); |
| 149 | } else { |
| 150 | onComplete?.(null); |
| 151 | resolve(); |
| 152 | } |
| 153 | }); |
| 154 | }); |
| 155 | } |
| 156 | |
| 157 | update(values: { [key: string]: any }, onComplete?: (error: FirebaseError) => void): Promise<void> { |
| 158 | return new Promise((resolve, reject) => { |
nothing calls this directly
no test coverage detected