mirror of
https://github.com/vercel-labs/json-render.git
synced 2026-09-14 13:41:32 +08:00
07de14b686
@resvg/resvg-js's asPng() and @react-pdf/renderer's renderToBuffer() return Node Buffer, which no longer satisfies the declared Uint8Array return types under the current @types/node/TypeScript resolution, failing dts builds (and therefore the release workflow's build step). Wrap the Buffers in zero-copy Uint8Array views. renderToStream() was declared as returning a web ReadableStream, but @react-pdf/renderer's renderToStream() actually resolves to a NodeJS.ReadableStream; declare what it really returns.