MCPcopy
hub / github.com/freshframework/fresh / isAsyncAnyComponent

Function isAsyncAnyComponent

packages/fresh/src/render.ts:23–25  ·  view source on GitHub ↗
(fn: any)

Source from the content-addressed store, hash-verified

21
22// deno-lint-ignore no-explicit-any
23export function isAsyncAnyComponent(fn: any): fn is AsyncAnyComponent<any> {
24 return typeof fn === "function" && fn.constructor.name === "AsyncFunction";
25}
26
27export async function renderAsyncAnyComponent<Props>(
28 fn: AsyncAnyComponent<Props>,

Callers 2

renderMethod · 0.90
renderRouteComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected