@i-xi-dev/base64
Version:
A JavaScript Base64 encoder and decoder, implements Forgiving base64 defined in WHATWG Infra Standard.
23 lines (22 loc) • 748 B
TypeScript
type _BlobConstructor = {
prototype: Blob;
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
/**
* If the `globalThis` has a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob), or if the `node:buffer` package has a `Blob`, then the `Blob` constructor.
* Otherwise referencing it will throw a `ReferenceError`.
*
* - Browser
* References the `globalThis.Blob`
*
* - Deno
* References the `globalThis.Blob`
*
* - Node.js 18.0+
* References the [`globalThis.Blob`](https://nodejs.org/api/globals.html#class-blob)
*
* - Node.js 15.7+ or 14.18+
* References the [`Blob`](https://nodejs.org/api/buffer.html#class-blob) of `node:buffer` package
*/
declare let _Blob: _BlobConstructor;
export { _Blob };