waitasecond
Advanced tools
Comparing version 0.1.5 to 0.2.0
export declare function forAllImagesInElement(element: HTMLElement): Promise<void>; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -1,1 +0,1 @@ | ||
export declare function forAnimationFrame(): Promise<void>; | ||
export declare function forAnimationFrame(): Promise<number>; |
@@ -5,4 +5,4 @@ "use strict"; | ||
return new Promise(function (resolve) { | ||
requestAnimationFrame(function () { | ||
resolve(); | ||
requestAnimationFrame(function (now) { | ||
resolve(now); | ||
}); | ||
@@ -9,0 +9,0 @@ }); |
export declare function forImmediate(): Promise<void>; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare function forTime(miliseconds: number): Promise<void>; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare function forValueDefined<T>(getValue: () => T | undefined, waiter?: () => Promise<void>, limit?: number): Promise<T>; |
@@ -44,3 +44,5 @@ "use strict"; | ||
case 0: return [4 /*yield*/, forAnimationFrame_1.forAnimationFrame()]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
} | ||
@@ -47,0 +49,0 @@ }); }); }; } |
@@ -0,0 +0,0 @@ import { forAllImagesInElement } from './functions/forAllImagesInElement'; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "waitasecond", | ||
"version": "0.1.5", | ||
"version": "0.2.0", | ||
"description": "Simple tool library for the waiting using Promises.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -0,0 +0,0 @@ # Wait a second library |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13290
185