UNPKG

nexwidget

Version:

An ESNext Web Component library.

15 lines (14 loc) 544 B
import { AsyncDirective } from 'lit-html/async-directive.js'; import { ChildPart } from 'lit-html/lit-html.js'; export declare class LazyloadDirective extends AsyncDirective { #private; render(widgetImport: Promise<unknown>, value: HTMLElement): symbol; update( part: ChildPart, [widgetImport, value]: [Promise<unknown>, HTMLElement], ): symbol; } export declare const lazyload: ( widgetImport: Promise<unknown>, value: HTMLElement, ) => import('lit-html/directive').DirectiveResult<typeof LazyloadDirective>;