UNPKG

@whitesev/utils

Version:

一个常用的工具库

15 lines (14 loc) 439 B
import type { WindowApiOption } from "./types/WindowApi"; declare class WindowApi { /** 默认的配置 */ private defaultApi; /** 使用的配置 */ private api; constructor(option?: WindowApiOption); get document(): Document; get window(): Window & typeof globalThis; get globalThis(): typeof globalThis | Window; get self(): Window & typeof globalThis; get top(): Window; } export { WindowApi };