.github/actions/statistics-chart-action/node_modules/@google-cloud/firestore/build/src/index.js
/**
     * Gets a [CollectionReference]{@link CollectionReference} instance
     * that refers to the collection at the specified path.
     *
     * @param {string} collectionPath A slash-separated path to a collection.
     * @returns {CollectionReference} The
     * [CollectionReference]{@link CollectionReference} instance.
     *
     * @example
     * let collectionRef = firestore.collection('collection');
     *
     * // Add a document with an auto-generated ID.
     * collectionRef.add({foo: 'bar'}).then((documentRef) => {
     *   console.log(`Added document at ${documentRef.path})`);
     * });
     */
Gets a [CollectionReference] CollectionReference instance
that refers to the collection at the specified path.

@param {string} collectionPath A slash-separated path to a collection.

@example
let collectionRef = firestore.collection('collection').

Add a document with an auto-generated ID.
Gets a [ CollectionReference ] CollectionReference instance that refers to the collection at the specified path . @param { string } collectionPath A slash - separated path to a collection . @example let collectionRef = firestore . collection ( ' collection ' ) . Add a document with an auto - generated ID .
collection(collectionPath) {
        path_1.validateResourcePath('collectionPath', collectionPath);
        const path = path_1.ResourcePath.EMPTY.append(collectionPath);
        if (!path.isCollection) {
            throw new Error(`Value for argument "collectionPath" must point to a collection, but was "${collectionPath}". Your path does not contain an odd number of components.`);
        }
        return new reference_1.CollectionReference(this, path);
    }
collection ( collectionPath ) { path_1 . validateResourcePath ( 'collectionPath' , collectionPath ) ; const path = path_1 . ResourcePath . EMPTY . append ( collectionPath ) ; if ( ! path . isCollection ) { throw new Error ( ` ${ collectionPath } ` ) ; } return new reference_1 . CollectionReference ( this , path ) ; }
Gets a [CollectionReference]{@link CollectionReference} instance
 that refers to the collection at the specified path.
Gets a [ CollectionReference ] { @link CollectionReference } instance that refers to the collection at the specified path .