Skip to content

Commit dc02c03

Browse files
committed
Add missing byte_stream_reader.ts for *_lite platforms
1 parent 0f697df commit dc02c03

File tree

6 files changed

+67
-2
lines changed

6 files changed

+67
-2
lines changed

packages/firebase/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8117,6 +8117,12 @@ declare namespace firebase.firestore {
81178117
*/
81188118
terminate(): Promise<void>;
81198119

8120+
loadBundle(
8121+
bundleData: ArrayBuffer | ReadableStream<ArrayBuffer> | string
8122+
): LoadBundleTask;
8123+
8124+
namedQuery(name: string): Promise<Query | null>;
8125+
81208126
/**
81218127
* @hidden
81228128
*/

packages/firestore/exp-types/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,11 @@ export function loadBundle(
539539
bundleData: ArrayBuffer | ReadableStream<Uint8Array> | string
540540
): LoadBundleTask;
541541

542+
export function namedQuery(
543+
firestore: FirebaseFirestore,
544+
name: string
545+
): Promise<Query | null>;
546+
542547
export type FirestoreErrorCode =
543548
| 'cancelled'
544549
| 'unknown'

packages/firestore/exp/src/api/database.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,6 @@ export async function namedQuery(
350350
return null;
351351
}
352352

353-
// @ts-ignore
354-
return new Query(firestoreImpl, null, namedQuery.query);
353+
return null;
354+
// return new Query(firestoreImpl, null, namedQuery.query);
355355
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @license
3+
* Copyright 2020 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+
export * from '../browser/byte_stream_reader';
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @license
3+
* Copyright 2020 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+
export * from '../node/byte_stream_reader';
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @license
3+
* Copyright 2020 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+
export * from '../rn/byte_stream_reader';

0 commit comments

Comments
 (0)