@whitesev/pops 2.3.4 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.amd.js +53 -18
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +53 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +53 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +53 -18
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +53 -18
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +53 -18
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/PopsCore.d.ts +8 -0
- package/package.json +1 -1
|
@@ -3,6 +3,10 @@ interface PopsCoreOption {
|
|
|
3
3
|
window: Window;
|
|
4
4
|
globalThis: typeof globalThis;
|
|
5
5
|
self: typeof globalThis;
|
|
6
|
+
setTimeout: Window["setTimeout"];
|
|
7
|
+
setInterval: Window["setInterval"];
|
|
8
|
+
clearTimeout: Window["clearTimeout"];
|
|
9
|
+
clearInterval: Window["clearInterval"];
|
|
6
10
|
}
|
|
7
11
|
declare const PopsCore: {
|
|
8
12
|
init(option?: PopsCoreOption): void;
|
|
@@ -10,6 +14,10 @@ declare const PopsCore: {
|
|
|
10
14
|
readonly window: Window;
|
|
11
15
|
readonly globalThis: typeof globalThis;
|
|
12
16
|
readonly self: typeof globalThis;
|
|
17
|
+
readonly setTimeout: (handler: TimerHandler, timeout?: number, ...arguments: any[]) => number;
|
|
18
|
+
readonly setInterval: (handler: TimerHandler, timeout?: number, ...arguments: any[]) => number;
|
|
19
|
+
readonly clearTimeout: (id: number | undefined) => void;
|
|
20
|
+
readonly clearInterval: (id: number | undefined) => void;
|
|
13
21
|
};
|
|
14
22
|
declare const OriginPrototype: {
|
|
15
23
|
Object: {
|