schema-components - v3.7.0
    Preparing search index...
    • Render a schema as a synchronous iterable of HTML string chunks. Each chunk is a self-contained HTML fragment, ready to write to a stream or concatenate into a single string. Use when the host can flush output incrementally but does not need cooperative scheduling.

      Type Parameters

      • T = unknown
      • Ref extends string | undefined = undefined
      • Mode extends SchemaIoSide = "output"

      Parameters

      Returns Iterable<string>

      import { renderToHtmlChunks } from "schema-components/html/renderToHtmlStream";

      for (const chunk of renderToHtmlChunks(userSchema, { value: user })) {
      response.write(chunk);
      }