UNPKG

wc-compiler

Version:

Experimental native Web Components compiler.

19 lines (16 loc) 410 B
export type Metadata = { [key: string]: { instanceName: string; moduleURL: URL; isEntry: boolean } } export type renderToString = (elementURL: URL, wrappingEntryTag?: boolean, props?: any) => Promise<{ html: string; metadata: Metadata }> export type renderFromHTML = (html: string, elementURLs: URL[]) => Promise<{ html: string; metadata: Metadata }> declare module "wc-compiler" { }