Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hono/utils/html.ts>StringBuffer

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
type alias StringBuffer
import { type StringBuffer } from "https://deno.land/x/hono@v4.1.0/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>)[]