UNPKG

@lit-labs/ssr-react

Version:
12 lines 568 B
/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ import type { createElement as ReactCreateElement, ElementType, PropsWithChildren, ReactElement, ReactNode } from 'react'; /** * Wraps the provided `createElement` function to also server render Lit * component's shadow DOM. */ export declare function wrapCreateElement(originalCreateElement: typeof ReactCreateElement): <P>(type: ElementType<P>, props: PropsWithChildren<P> | null, ...children: ReactNode[]) => ReactElement; //# sourceMappingURL=wrap-create-element.d.ts.map