mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-24 11:13:18 +00:00
29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
|
import { FirebaseNamespace } from '@firebase/app-types';
|
||
|
import { Database } from './src/api/Database';
|
||
|
import { Query } from './src/api/Query';
|
||
|
import { Reference } from './src/api/Reference';
|
||
|
import { enableLogging } from './src/core/util/util';
|
||
|
import * as types from '@firebase/database-types';
|
||
|
declare const ServerValue: {
|
||
|
TIMESTAMP: {
|
||
|
'.sv': string;
|
||
|
};
|
||
|
};
|
||
|
export declare function registerDatabase(instance: FirebaseNamespace): void;
|
||
|
export { Database, Query, Reference, enableLogging, ServerValue };
|
||
|
export { DataSnapshot } from './src/api/DataSnapshot';
|
||
|
export { OnDisconnect } from './src/api/onDisconnect';
|
||
|
declare module '@firebase/app-types' {
|
||
|
interface FirebaseNamespace {
|
||
|
database?: {
|
||
|
(app?: FirebaseApp): types.FirebaseDatabase;
|
||
|
enableLogging: typeof types.enableLogging;
|
||
|
ServerValue: types.ServerValue;
|
||
|
Database: typeof types.FirebaseDatabase;
|
||
|
};
|
||
|
}
|
||
|
interface FirebaseApp {
|
||
|
database?(databaseURL?: string): types.FirebaseDatabase;
|
||
|
}
|
||
|
}
|