shineout
Version:
Shein 前端组件库
12 lines (11 loc) • 446 B
TypeScript
export declare const docScroll: {
top: number;
left: number;
};
export declare const docSize: {
readonly width: number;
readonly height: number;
};
export declare function addEventListener<K extends keyof HTMLElementEventMap>(target: HTMLElement | Document, eventType: keyof HTMLElementEventMap, cb: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, option?: boolean | AddEventListenerOptions): {
remove: () => void;
};