Skip to content

Commit 1abf01c

Browse files
committed
export types for admin SDK
1 parent f90c1d0 commit 1abf01c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/database-compat/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ export function registerDatabase(instance: FirebaseNamespace) {
6767

6868
registerDatabase(firebase);
6969

70+
// Types to export for the admin SDK. They are exported in the browser entry point only for typings
71+
// The same symbol should be exported from the node entry point so their values can be accessed at runtime by admin SDK
72+
export type { Database, Query, Reference, enableLogging, ServerValue, DataSnapshot };
73+
export type { OnDisconnect } from '@firebase/database';
74+
7075
declare module '@firebase/app-compat' {
7176
interface FirebaseNamespace {
7277
database?: {

0 commit comments

Comments
 (0)