mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-17 17:06:00 +00:00
Modules
This commit is contained in:
34
node_modules/@firebase/database/dist/test/helpers/EventAccumulator.d.ts
generated
vendored
Normal file
34
node_modules/@firebase/database/dist/test/helpers/EventAccumulator.d.ts
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export declare const EventAccumulatorFactory: {
|
||||
waitsForCount: (maxCount: any) => EventAccumulator;
|
||||
};
|
||||
export declare class EventAccumulator {
|
||||
condition: Function;
|
||||
eventData: any[];
|
||||
promise: any;
|
||||
resolve: any;
|
||||
reject: any;
|
||||
private onResetFxn;
|
||||
private onEventFxn;
|
||||
constructor(condition: Function);
|
||||
addEvent(eventData?: any): void;
|
||||
reset(condition?: Function): void;
|
||||
onEvent(cb: Function): void;
|
||||
onReset(cb: Function): void;
|
||||
_testCondition(): any;
|
||||
}
|
37
node_modules/@firebase/database/dist/test/helpers/events.d.ts
generated
vendored
Normal file
37
node_modules/@firebase/database/dist/test/helpers/events.d.ts
generated
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* A set of functions to clean up event handlers.
|
||||
* @type {function()}
|
||||
*/
|
||||
export declare let eventCleanupHandlers: any[];
|
||||
/** Clean up outstanding event handlers */
|
||||
export declare function eventCleanup(): void;
|
||||
/**
|
||||
* Creates a struct which waits for many events.
|
||||
* @param {Array<Array>} pathAndEvents an array of tuples of [Firebase, [event type strings]]
|
||||
* @param {string=} helperName
|
||||
* @return {{waiter: waiter, watchesInitializedWaiter: watchesInitializedWaiter, unregister: unregister, addExpectedEvents: addExpectedEvents}}
|
||||
*/
|
||||
export declare function eventTestHelper(pathAndEvents: any, helperName?: any): {
|
||||
promise: Promise<unknown>;
|
||||
initPromise: Promise<unknown>;
|
||||
waiter: () => boolean;
|
||||
watchesInitializedWaiter: () => boolean;
|
||||
unregister: () => void;
|
||||
addExpectedEvents(moreEvents: any): void;
|
||||
};
|
50
node_modules/@firebase/database/dist/test/helpers/util.d.ts
generated
vendored
Normal file
50
node_modules/@firebase/database/dist/test/helpers/util.d.ts
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../index';
|
||||
import { Reference } from '../../src/api/Reference';
|
||||
import { Query } from '../../src/api/Query';
|
||||
export declare const TEST_PROJECT: any;
|
||||
export declare const DATABASE_ADDRESS: any;
|
||||
export declare const DATABASE_URL: any;
|
||||
export declare function createTestApp(): import("@firebase/app-types").FirebaseApp;
|
||||
/**
|
||||
* Gets or creates a root node to the test namespace. All calls sharing the
|
||||
* value of opt_i will share an app context.
|
||||
* @param {number=} i
|
||||
* @param {string=} ref
|
||||
* @return {Reference}
|
||||
*/
|
||||
export declare function getRootNode(i?: number, ref?: string): any;
|
||||
/**
|
||||
* Create multiple refs to the same top level
|
||||
* push key - each on it's own Firebase.Context.
|
||||
* @param {int=} numNodes
|
||||
* @return {Reference|Array<Reference>}
|
||||
*/
|
||||
export declare function getRandomNode(numNodes?: any): Reference | Reference[];
|
||||
export declare function getQueryValue(query: Query): Promise<unknown>;
|
||||
export declare function pause(milliseconds: number): Promise<unknown>;
|
||||
export declare function getPath(query: Query): string;
|
||||
export declare function shuffle(arr: any, randFn?: () => number): void;
|
||||
export declare function getFreshRepo(path: any): any;
|
||||
export declare function getFreshRepoFromReference(ref: any): any;
|
||||
export declare function getSnap(path: any): any;
|
||||
export declare function getVal(path: any): any;
|
||||
export declare function canCreateExtraConnections(): boolean;
|
||||
export declare function buildObjFromKey(key: any): {};
|
||||
export declare function testRepoInfo(url: any): import("../../src/core/RepoInfo").RepoInfo;
|
||||
export declare function repoInfoForConnectionTest(): import("../../src/core/RepoInfo").RepoInfo;
|
Reference in New Issue
Block a user