( template: JSXNode | Promise<HtmlEscapedString> | Promise<string> | HtmlEscapedString )
| 10 | import { Style, createCssContext, css, cx, keyframes, rawCssString, viewTransition } from './index' |
| 11 | |
| 12 | async function toString( |
| 13 | template: JSXNode | Promise<HtmlEscapedString> | Promise<string> | HtmlEscapedString |
| 14 | ) { |
| 15 | if (template instanceof Promise) { |
| 16 | template = (await template) as HtmlEscapedString |
| 17 | } |
| 18 | if (isValidElement(template)) { |
| 19 | template = template.toString() as Promise<HtmlEscapedString> |
| 20 | } |
| 21 | return resolveCallback(await template, HtmlEscapedCallbackPhase.Stringify, false, template) |
| 22 | } |
| 23 | |
| 24 | async function toCSS( |
| 25 | template: JSXNode | Promise<HtmlEscapedString> | Promise<string> | HtmlEscapedString |
no test coverage detected
searching dependent graphs…