MCPcopy Index your code
hub / github.com/NativeScript/firebase / Reference

Class Reference

packages/firebase-database/index.d.ts:65–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65export declare class Reference extends Query implements IReference {
66 readonly native: any;
67 readonly android: any;
68 readonly ios: any;
69
70 readonly key: string;
71 readonly parent: Reference;
72 readonly ref: Reference;
73 readonly root: Reference;
74
75 child(path: string): Reference;
76
77 onDisconnect(): OnDisconnect;
78
79 push(value?: any, onComplete?: () => void): IThenableReference;
80
81 remove(onComplete?: (error: FirebaseError) => void): Promise<void>;
82
83 set(value: any, onComplete?: (error: FirebaseError) => void): Promise<void>;
84
85 setPriority(priority: string | number, onComplete?: (error: FirebaseError) => void): Promise<void>;
86
87 setWithPriority(newVal: any, newPriority: string | number, onComplete?: (error: FirebaseError) => void): Promise<void>;
88
89 transaction(transactionUpdate: (currentData: object) => object, onComplete?: (error: FirebaseError, committed: boolean, finalResult: any) => void, applyLocally: boolean = true): Promise<TransactionResult>;
90
91 update(values: { [key: string]: any }, onComplete?: (error: FirebaseError) => void): Promise<void>;
92}
93
94export declare class DataSnapshot implements IDataSnapshot {
95 readonly native: any;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…