@surface/custom-element
Version:
Provides support of directives and data binding on custom elements.
13 lines (12 loc) • 590 B
TypeScript
/**
* Injects lazy queried element.
* @param selector Selector used to element query.
* @param nocache Specifies whether the element should be cached.
*/
export declare function query(selector: string, nocache?: boolean): (target: HTMLElement, propertyKey: string | symbol) => void;
/**
* Injects all queried element.
* @param selector Selector used to elements query.
* @param nocache Specifies whether the elements should be cached.
*/
export declare function queryAll(selector: string, nocache?: boolean): (target: HTMLElement, propertyKey: string | symbol) => void;