@firebase/database-compat 2.0.0 → 2.0.1-canary.ffbf5a60a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database-compat/src/api/Database.d.ts +74 -74
- package/dist/database-compat/src/api/Reference.d.ts +207 -207
- package/dist/database-compat/src/api/TransactionResult.d.ts +26 -26
- package/dist/database-compat/src/api/internal.d.ts +41 -41
- package/dist/database-compat/src/api/onDisconnect.d.ts +27 -27
- package/dist/database-compat/src/index.d.ts +32 -32
- package/dist/database-compat/src/index.node.d.ts +30 -30
- package/dist/database-compat/src/index.standalone.d.ts +52 -52
- package/dist/database-compat/src/util/util.d.ts +17 -17
- package/dist/database-compat/src/util/validation.d.ts +18 -18
- package/dist/database-compat/test/browser/crawler_support.test.d.ts +17 -17
- package/dist/database-compat/test/database.test.d.ts +17 -17
- package/dist/database-compat/test/datasnapshot.test.d.ts +17 -17
- package/dist/database-compat/test/helpers/events.d.ts +34 -34
- package/dist/database-compat/test/helpers/util.d.ts +42 -42
- package/dist/database-compat/test/info.test.d.ts +17 -17
- package/dist/database-compat/test/order.test.d.ts +17 -17
- package/dist/database-compat/test/order_by.test.d.ts +17 -17
- package/dist/database-compat/test/promise.test.d.ts +17 -17
- package/dist/database-compat/test/query.test.d.ts +17 -17
- package/dist/database-compat/test/servervalues.test.d.ts +17 -17
- package/dist/database-compat/test/transaction.test.d.ts +17 -17
- package/dist/index.esm2017.js +830 -830
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.js +830 -830
- package/dist/index.js.map +1 -1
- package/dist/index.standalone.js +14762 -14762
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/database-compat/src/api/Database.d.ts +74 -74
- package/dist/node-esm/database-compat/src/api/Reference.d.ts +207 -207
- package/dist/node-esm/database-compat/src/api/TransactionResult.d.ts +26 -26
- package/dist/node-esm/database-compat/src/api/internal.d.ts +41 -41
- package/dist/node-esm/database-compat/src/api/onDisconnect.d.ts +27 -27
- package/dist/node-esm/database-compat/src/index.d.ts +32 -32
- package/dist/node-esm/database-compat/src/index.node.d.ts +30 -30
- package/dist/node-esm/database-compat/src/index.standalone.d.ts +52 -52
- package/dist/node-esm/database-compat/src/util/util.d.ts +17 -17
- package/dist/node-esm/database-compat/src/util/validation.d.ts +18 -18
- package/dist/node-esm/database-compat/test/browser/crawler_support.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/database.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/datasnapshot.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/helpers/events.d.ts +34 -34
- package/dist/node-esm/database-compat/test/helpers/util.d.ts +42 -42
- package/dist/node-esm/database-compat/test/info.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/order.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/order_by.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/promise.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/query.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/servervalues.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/transaction.test.d.ts +17 -17
- package/dist/node-esm/index.js +830 -830
- package/dist/node-esm/index.js.map +1 -1
- package/package.json +8 -8
@@ -1,41 +1,41 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import { FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
|
18
|
-
import { FirebaseApp } from '@firebase/app-types';
|
19
|
-
import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
|
20
|
-
import * as types from '@firebase/database-types';
|
21
|
-
/**
|
22
|
-
* Used by console to create a database based on the app,
|
23
|
-
* passed database URL and a custom auth implementation.
|
24
|
-
*
|
25
|
-
* @param app - A valid FirebaseApp-like object
|
26
|
-
* @param url - A valid Firebase databaseURL
|
27
|
-
* @param version - custom version e.g. firebase-admin version
|
28
|
-
* @param customAuthImpl - custom auth implementation
|
29
|
-
*/
|
30
|
-
export declare function initStandalone<T>({ app, url, version, customAuthImpl, customAppCheckImpl, namespace, nodeAdmin }: {
|
31
|
-
app: FirebaseApp;
|
32
|
-
url: string;
|
33
|
-
version: string;
|
34
|
-
customAuthImpl: FirebaseAuthInternal;
|
35
|
-
customAppCheckImpl?: FirebaseAppCheckInternal;
|
36
|
-
namespace: T;
|
37
|
-
nodeAdmin?: boolean;
|
38
|
-
}): {
|
39
|
-
instance: types.Database;
|
40
|
-
namespace: T;
|
41
|
-
};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
|
18
|
+
import { FirebaseApp } from '@firebase/app-types';
|
19
|
+
import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
|
20
|
+
import * as types from '@firebase/database-types';
|
21
|
+
/**
|
22
|
+
* Used by console to create a database based on the app,
|
23
|
+
* passed database URL and a custom auth implementation.
|
24
|
+
*
|
25
|
+
* @param app - A valid FirebaseApp-like object
|
26
|
+
* @param url - A valid Firebase databaseURL
|
27
|
+
* @param version - custom version e.g. firebase-admin version
|
28
|
+
* @param customAuthImpl - custom auth implementation
|
29
|
+
*/
|
30
|
+
export declare function initStandalone<T>({ app, url, version, customAuthImpl, customAppCheckImpl, namespace, nodeAdmin }: {
|
31
|
+
app: FirebaseApp;
|
32
|
+
url: string;
|
33
|
+
version: string;
|
34
|
+
customAuthImpl: FirebaseAuthInternal;
|
35
|
+
customAppCheckImpl?: FirebaseAppCheckInternal;
|
36
|
+
namespace: T;
|
37
|
+
nodeAdmin?: boolean;
|
38
|
+
}): {
|
39
|
+
instance: types.Database;
|
40
|
+
namespace: T;
|
41
|
+
};
|
@@ -1,27 +1,27 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import { OnDisconnect as ModularOnDisconnect } from '@firebase/database';
|
18
|
-
import { Compat } from '@firebase/util';
|
19
|
-
export declare class OnDisconnect implements Compat<ModularOnDisconnect> {
|
20
|
-
readonly _delegate: ModularOnDisconnect;
|
21
|
-
constructor(_delegate: ModularOnDisconnect);
|
22
|
-
cancel(onComplete?: (a: Error | null) => void): Promise<void>;
|
23
|
-
remove(onComplete?: (a: Error | null) => void): Promise<void>;
|
24
|
-
set(value: unknown, onComplete?: (a: Error | null) => void): Promise<void>;
|
25
|
-
setWithPriority(value: unknown, priority: number | string | null, onComplete?: (a: Error | null) => void): Promise<void>;
|
26
|
-
update(objectToMerge: Record<string, unknown>, onComplete?: (a: Error | null) => void): Promise<void>;
|
27
|
-
}
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { OnDisconnect as ModularOnDisconnect } from '@firebase/database';
|
18
|
+
import { Compat } from '@firebase/util';
|
19
|
+
export declare class OnDisconnect implements Compat<ModularOnDisconnect> {
|
20
|
+
readonly _delegate: ModularOnDisconnect;
|
21
|
+
constructor(_delegate: ModularOnDisconnect);
|
22
|
+
cancel(onComplete?: (a: Error | null) => void): Promise<void>;
|
23
|
+
remove(onComplete?: (a: Error | null) => void): Promise<void>;
|
24
|
+
set(value: unknown, onComplete?: (a: Error | null) => void): Promise<void>;
|
25
|
+
setWithPriority(value: unknown, priority: number | string | null, onComplete?: (a: Error | null) => void): Promise<void>;
|
26
|
+
update(objectToMerge: Record<string, unknown>, onComplete?: (a: Error | null) => void): Promise<void>;
|
27
|
+
}
|
@@ -1,32 +1,32 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import { FirebaseNamespace } from '@firebase/app-compat';
|
18
|
-
import * as types from '@firebase/database-types';
|
19
|
-
export declare function registerDatabase(instance: FirebaseNamespace): void;
|
20
|
-
declare module '@firebase/app-compat' {
|
21
|
-
interface FirebaseNamespace {
|
22
|
-
database?: {
|
23
|
-
(app?: FirebaseApp): types.FirebaseDatabase;
|
24
|
-
enableLogging: typeof types.enableLogging;
|
25
|
-
ServerValue: types.ServerValue;
|
26
|
-
Database: typeof types.FirebaseDatabase;
|
27
|
-
};
|
28
|
-
}
|
29
|
-
interface FirebaseApp {
|
30
|
-
database?(databaseURL?: string): types.FirebaseDatabase;
|
31
|
-
}
|
32
|
-
}
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { FirebaseNamespace } from '@firebase/app-compat';
|
18
|
+
import * as types from '@firebase/database-types';
|
19
|
+
export declare function registerDatabase(instance: FirebaseNamespace): void;
|
20
|
+
declare module '@firebase/app-compat' {
|
21
|
+
interface FirebaseNamespace {
|
22
|
+
database?: {
|
23
|
+
(app?: FirebaseApp): types.FirebaseDatabase;
|
24
|
+
enableLogging: typeof types.enableLogging;
|
25
|
+
ServerValue: types.ServerValue;
|
26
|
+
Database: typeof types.FirebaseDatabase;
|
27
|
+
};
|
28
|
+
}
|
29
|
+
interface FirebaseApp {
|
30
|
+
database?(databaseURL?: string): types.FirebaseDatabase;
|
31
|
+
}
|
32
|
+
}
|
@@ -1,30 +1,30 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import * as types from '@firebase/database-types';
|
18
|
-
declare module '@firebase/app-compat' {
|
19
|
-
interface FirebaseNamespace {
|
20
|
-
database?: {
|
21
|
-
(app?: FirebaseApp): types.FirebaseDatabase;
|
22
|
-
enableLogging: typeof types.enableLogging;
|
23
|
-
ServerValue: types.ServerValue;
|
24
|
-
Database: typeof types.FirebaseDatabase;
|
25
|
-
};
|
26
|
-
}
|
27
|
-
interface FirebaseApp {
|
28
|
-
database?(): types.FirebaseDatabase;
|
29
|
-
}
|
30
|
-
}
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import * as types from '@firebase/database-types';
|
18
|
+
declare module '@firebase/app-compat' {
|
19
|
+
interface FirebaseNamespace {
|
20
|
+
database?: {
|
21
|
+
(app?: FirebaseApp): types.FirebaseDatabase;
|
22
|
+
enableLogging: typeof types.enableLogging;
|
23
|
+
ServerValue: types.ServerValue;
|
24
|
+
Database: typeof types.FirebaseDatabase;
|
25
|
+
};
|
26
|
+
}
|
27
|
+
interface FirebaseApp {
|
28
|
+
database?(): types.FirebaseDatabase;
|
29
|
+
}
|
30
|
+
}
|
@@ -1,52 +1,52 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import { FirebaseApp } from '@firebase/app-types';
|
18
|
-
import { enableLogging } from '@firebase/database';
|
19
|
-
import { Database } from './api/Database';
|
20
|
-
import * as INTERNAL from './api/internal';
|
21
|
-
import { DataSnapshot, Query, Reference } from './api/Reference';
|
22
|
-
declare const ServerValue: {
|
23
|
-
TIMESTAMP: object;
|
24
|
-
increment: (delta: number) => object;
|
25
|
-
};
|
26
|
-
/**
|
27
|
-
* A one off register function which returns a database based on the app and
|
28
|
-
* passed database URL. (Used by the Admin SDK)
|
29
|
-
*
|
30
|
-
* @param app - A valid FirebaseApp-like object
|
31
|
-
* @param url - A valid Firebase databaseURL
|
32
|
-
* @param version - custom version e.g. firebase-admin version
|
33
|
-
* @param nodeAdmin - true if the SDK is being initialized from Firebase Admin.
|
34
|
-
*/
|
35
|
-
export declare function initStandalone(app: FirebaseApp, url: string, version: string, nodeAdmin?: boolean): {
|
36
|
-
instance: import("@firebase/database-types").Database;
|
37
|
-
namespace: {
|
38
|
-
Reference: typeof Reference;
|
39
|
-
Query: typeof Query;
|
40
|
-
Database: typeof Database;
|
41
|
-
DataSnapshot: typeof DataSnapshot;
|
42
|
-
enableLogging: typeof enableLogging;
|
43
|
-
INTERNAL: typeof INTERNAL;
|
44
|
-
ServerValue: {
|
45
|
-
TIMESTAMP: object;
|
46
|
-
increment: (delta: number) => object;
|
47
|
-
};
|
48
|
-
};
|
49
|
-
};
|
50
|
-
export { Database, Query, Reference, enableLogging, ServerValue };
|
51
|
-
export { OnDisconnect } from '@firebase/database';
|
52
|
-
export { DataSnapshot } from './api/Reference';
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { FirebaseApp } from '@firebase/app-types';
|
18
|
+
import { enableLogging } from '@firebase/database';
|
19
|
+
import { Database } from './api/Database';
|
20
|
+
import * as INTERNAL from './api/internal';
|
21
|
+
import { DataSnapshot, Query, Reference } from './api/Reference';
|
22
|
+
declare const ServerValue: {
|
23
|
+
TIMESTAMP: object;
|
24
|
+
increment: (delta: number) => object;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* A one off register function which returns a database based on the app and
|
28
|
+
* passed database URL. (Used by the Admin SDK)
|
29
|
+
*
|
30
|
+
* @param app - A valid FirebaseApp-like object
|
31
|
+
* @param url - A valid Firebase databaseURL
|
32
|
+
* @param version - custom version e.g. firebase-admin version
|
33
|
+
* @param nodeAdmin - true if the SDK is being initialized from Firebase Admin.
|
34
|
+
*/
|
35
|
+
export declare function initStandalone(app: FirebaseApp, url: string, version: string, nodeAdmin?: boolean): {
|
36
|
+
instance: import("@firebase/database-types").Database;
|
37
|
+
namespace: {
|
38
|
+
Reference: typeof Reference;
|
39
|
+
Query: typeof Query;
|
40
|
+
Database: typeof Database;
|
41
|
+
DataSnapshot: typeof DataSnapshot;
|
42
|
+
enableLogging: typeof enableLogging;
|
43
|
+
INTERNAL: typeof INTERNAL;
|
44
|
+
ServerValue: {
|
45
|
+
TIMESTAMP: object;
|
46
|
+
increment: (delta: number) => object;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
};
|
50
|
+
export { Database, Query, Reference, enableLogging, ServerValue };
|
51
|
+
export { OnDisconnect } from '@firebase/database';
|
52
|
+
export { DataSnapshot } from './api/Reference';
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
export declare const warn: (msg: string) => void;
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
export declare const warn: (msg: string) => void;
|
@@ -1,18 +1,18 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
export declare const validateBoolean: (fnName: string, argumentName: string, bool: unknown, optional: boolean) => void;
|
18
|
-
export declare const validateEventType: (fnName: string, eventType: string, optional: boolean) => void;
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
export declare const validateBoolean: (fnName: string, argumentName: string, bool: unknown, optional: boolean) => void;
|
18
|
+
export declare const validateEventType: (fnName: string, eventType: string, optional: boolean) => void;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
export {};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
export {};
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import '../src/index';
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import '../src/index';
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
export {};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
export {};
|
@@ -1,34 +1,34 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 Google LLC
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
/**
|
18
|
-
* A set of functions to clean up event handlers.
|
19
|
-
*/
|
20
|
-
export declare let eventCleanupHandlers: any[];
|
21
|
-
/** Clean up outstanding event handlers */
|
22
|
-
export declare function eventCleanup(): void;
|
23
|
-
/**
|
24
|
-
* Creates a struct which waits for many events.
|
25
|
-
* @param pathAndEvents - an array of tuples of [Firebase, [event type strings]]
|
26
|
-
*/
|
27
|
-
export declare function eventTestHelper(pathAndEvents: any, helperName?: any): {
|
28
|
-
promise: Promise<unknown>;
|
29
|
-
initPromise: Promise<unknown>;
|
30
|
-
waiter: () => boolean;
|
31
|
-
watchesInitializedWaiter: () => boolean;
|
32
|
-
unregister: () => void;
|
33
|
-
addExpectedEvents(moreEvents: any): void;
|
34
|
-
};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google LLC
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
/**
|
18
|
+
* A set of functions to clean up event handlers.
|
19
|
+
*/
|
20
|
+
export declare let eventCleanupHandlers: any[];
|
21
|
+
/** Clean up outstanding event handlers */
|
22
|
+
export declare function eventCleanup(): void;
|
23
|
+
/**
|
24
|
+
* Creates a struct which waits for many events.
|
25
|
+
* @param pathAndEvents - an array of tuples of [Firebase, [event type strings]]
|
26
|
+
*/
|
27
|
+
export declare function eventTestHelper(pathAndEvents: any, helperName?: any): {
|
28
|
+
promise: Promise<unknown>;
|
29
|
+
initPromise: Promise<unknown>;
|
30
|
+
waiter: () => boolean;
|
31
|
+
watchesInitializedWaiter: () => boolean;
|
32
|
+
unregister: () => void;
|
33
|
+
addExpectedEvents(moreEvents: any): void;
|
34
|
+
};
|