Kind: Function
Source: src/utils/html.ts
Part of: Utils
Signature
tsasync function resolveCallback(str: string | HtmlEscapedString | Promise<string>, phase: (typeof HtmlEscapedCallbackPhase)[keyof typeof HtmlEscapedCallbackPhase], preserveCallbacks: boolean, context: object, buffer: [string]): Promise<string>
Parameters
| Name | Type |
|---|---|
str | `string |
phase | (typeof HtmlEscapedCallbackPhase)[keyof typeof HtmlEscapedCallbackPhase] |
preserveCallbacks | boolean |
context | object |
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)
Data—src/context.ts:26SSEMessage—src/helper/streaming/sse.ts:6childrenToString—src/jsx/components.ts:14StreamingContext—src/jsx/streaming.ts:30
Was this page helpful?