Module

x/hono/utils/html.ts>StringBuffer

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
type alias StringBuffer
import { type StringBuffer } from "https://dotland.deno.dev/x/hono@v4.1.5/utils/html.ts";

StringBuffer contains string and Promise alternately The length of the array will be odd, the odd numbered element will be a string, and the even numbered element will be a Promise. When concatenating into a single string, it must be processed from the tail.

Examples

[ 'framework.', Promise.resolve('ultra fast'), 'a ', Promise.resolve('is '), 'Hono', ]

definition: (string | Promise<string>)[]