UNPKG

lit-analyzer

Version:

CLI that type checks bindings in lit-html templates

19 lines 594 B
import { LitHtmlAttributeModifier } from "../constants.js"; export type Newable<T> = { new (...args: any[]): T; }; export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; /** * Parses an attribute name returning a name and eg. a modifier. * Examples: * - ?disabled="..." * - .myProp="..." * - @click="..." * @param attributeName */ export declare function parseLitAttrName(attributeName: string): { name: string; modifier?: LitHtmlAttributeModifier; }; export declare function lazy<T extends Function>(func: T): T; //# sourceMappingURL=general-util.d.ts.map