Skip to content

resolveCallback

reference
1 min readUpdated

Kind: Function

Source: src/utils/html.ts

Part of: Utils

Signature

ts
async function resolveCallback(str: string | HtmlEscapedString | Promise<string>, phase: (typeof HtmlEscapedCallbackPhase)[keyof typeof HtmlEscapedCallbackPhase], preserveCallbacks: boolean, context: object, buffer: [string]): Promise<string>

Parameters

NameType
str`string
phase(typeof HtmlEscapedCallbackPhase)[keyof typeof HtmlEscapedCallbackPhase]
preserveCallbacksboolean
contextobject
buffer[string]

Returns: Promise<string>

Used by

4 references from 4 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (4)

  • Datasrc/context.ts:26
  • SSEMessagesrc/helper/streaming/sse.ts:6
  • childrenToStringsrc/jsx/components.ts:14
  • StreamingContextsrc/jsx/streaming.ts:30

Was this page helpful?

Download as PDF
resolveCallback — Hono (narrator proof)