UNPKG

lit-ssr-utils

Version:

Lit utils to implement SSR to projects that do not use Javascript.

26 lines (22 loc) 595 B
// Generated by dts-bundle-generator v8.1.2 export type LitSsrError = { message: string; code: string; }; export type HttpLitSsrResponse = { html: string; }; export type HttpLitSsrError = LitSsrError; export type HttpLitSsrHeaders = Record<string, string>; export type HttpLitSsr = [ number, HttpLitSsrResponse | HttpLitSsrError, HttpLitSsrHeaders ]; declare function decoupledHandler(body: any): Promise<HttpLitSsr>; declare function renderLitElement(body: any): Promise<HttpLitSsrResponse | HttpLitSsrError>; export { decoupledHandler as api, renderLitElement as rpc, }; export {};