veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
29 lines (19 loc) • 718 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [Reference](./database.reference.md) > [setWithPriority](./database.reference.setwithpriority.md)
## Reference.setWithPriority() method
<b>Signature:</b>
```typescript
setWithPriority(
newVal: any,
newPriority: string | number | null,
onComplete?: (a: Error | null) => any
): Promise<any>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| newVal | any | |
| newPriority | string \| number \| null | |
| onComplete | (a: Error \| null) => any | |
<b>Returns:</b>
Promise<any>