nft.storage
Version:
A client library for the https://nft.storage/ service. It provides a convenient interface for working with the HTTP API from a web browser or Node.js
39 lines • 1.65 kB
TypeScript
export const fetch: typeof globalThis.fetch;
export const FormData: {
new (form?: HTMLFormElement | undefined, submitter?: HTMLElement | null | undefined): FormData;
prototype: FormData;
};
export const Headers: {
new (init?: HeadersInit | undefined): Headers;
prototype: Headers;
};
export const Request: {
new (input: URL | RequestInfo, init?: RequestInit | undefined): Request;
prototype: Request;
};
export const Response: {
new (body?: BodyInit | null | undefined, init?: ResponseInit | undefined): Response;
prototype: Response;
error(): Response;
json(data: any, init?: ResponseInit | undefined): Response;
redirect(url: string | URL, status?: number | undefined): Response;
};
export const Blob: {
new (blobParts?: BlobPart[] | undefined, options?: BlobPropertyBag | undefined): Blob;
prototype: Blob;
};
export const File: {
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
prototype: File;
};
export const ReadableStream: {
new (underlyingSource: UnderlyingByteSource, strategy?: {
highWaterMark?: number | undefined;
} | undefined): ReadableStream<Uint8Array>;
new <R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R> | undefined): ReadableStream<R>;
new <R_1 = any>(underlyingSource?: UnderlyingSource<R_1> | undefined, strategy?: QueuingStrategy<R_1> | undefined): ReadableStream<R_1>;
prototype: ReadableStream<any>;
};
export const Blockstore: typeof MemoryBlockStore;
import { MemoryBlockStore } from 'ipfs-car/blockstore/memory';
//# sourceMappingURL=platform.web.d.ts.map