quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
20 lines (17 loc) • 558 B
TypeScript
import { VueStyleObjectProp } from "../api/vue-prop-types";
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: VueStyleObjectProp): void;
function cssBatch(
elements: readonly Element[],
css: VueStyleObjectProp,
): void;
function ready<F extends (...args: any[]) => any>(fn: F): ReturnType<F>;
}