Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
import type { Readable } from "stream";
|
|
import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check";
|
|
/**
|
|
* @public
|
|
*
|
|
* This is the union representing the modeled blob type with streaming trait
|
|
* in a generic format that does not relate to HTTP input or output payloads.
|
|
*
|
|
* Note: the non-streaming blob type is represented by Uint8Array, but because
|
|
* the streaming blob type is always in the request/response paylod, it has
|
|
* historically been handled with different types.
|
|
*
|
|
* @see https://smithy.io/2.0/spec/simple-types.html#blob
|
|
*
|
|
* For compatibility with its historical representation, it must contain at least
|
|
* Readble (Node.js), Blob (browser), and ReadableStream (browser).
|
|
*
|
|
* @see StreamingPayloadInputTypes for FAQ about mixing types from multiple environments.
|
|
*/
|
|
export type StreamingBlobTypes = NodeJsRuntimeStreamingBlobTypes | BrowserRuntimeStreamingBlobTypes;
|
|
/**
|
|
* @public
|
|
*
|
|
* Node.js streaming blob type.
|
|
*/
|
|
export type NodeJsRuntimeStreamingBlobTypes = Readable;
|
|
/**
|
|
* @public
|
|
*
|
|
* Browser streaming blob types.
|
|
*/
|
|
export type BrowserRuntimeStreamingBlobTypes = ReadableStreamOptionalType | BlobOptionalType;
|