UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

10 lines (9 loc) 373 B
import { ReadFile } from '../../foundation/types'; /** * Server-side `readFile` implementation using `Blob.arrayBuffer()`. * * `Blob` (and `File`, which extends `Blob`) expose `arrayBuffer()` in * Node.js 18+ — this is the canonical way to read blob contents on the * server without relying on browser-only `FileReader`. */ export declare const readFile: ReadFile;