Skip to content

Commit d8ca6b7

Browse files
Fix Shim
1 parent e804df1 commit d8ca6b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/firestore/exp/test/shim.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,14 @@ export class FieldPath implements legacy.FieldPath {
731731
export class Blob implements legacy.Blob {
732732
constructor(readonly _delegate: BytesExp) {}
733733

734+
static fromBase64String(base64: string): Blob {
735+
return new Blob(BytesExp.fromBase64String(base64));
736+
}
737+
738+
static fromUint8Array(array: Uint8Array): Blob {
739+
return new Blob(BytesExp.fromUint8Array(array));
740+
}
741+
734742
toBase64(): string {
735743
return this._delegate.toBase64();
736744
}

0 commit comments

Comments
 (0)