UNPKG

@chasemoskal/magical

Version:

web toolkit for lit apps

10 lines (9 loc) 313 B
export type ElementWithContext<C, E extends HTMLElement> = { new (...args: any[]): E; withContext(context: C): { new (...args: any): E; }; }; export declare function provideContextToElements<C, E extends { [key: string]: ElementWithContext<C, HTMLElement>; }>(context: C, elements: E): E;