quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
15 lines (13 loc) • 495 B
TypeScript
export interface DomOffset {
top: number;
left: number;
}
export namespace dom {
function offset(el: Element): DomOffset;
function style(el: Element, property: string): string;
function height(el: Element): number;
function width(el: Element): number;
function css(el: Element, css: Partial<CSSStyleDeclaration>): void;
function cssBatch(elements: Element[], css: Partial<CSSStyleDeclaration>): void;
function ready<F extends (...args: any[]) => any>(fn: F): ReturnType<F>;
}