Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hono/utils/html.ts>StringBuffer

Web Framework built on Web Standards
Extremely Popular
Latest
type alias StringBuffer
import { type StringBuffer } from "https://deno.land/x/hono@v4.3.11/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>)[]