@hiogawa/tiny-toast
Advanced tools
Comparing version 0.0.1-pre.9 to 0.1.0
// src/utils.ts | ||
var PauseableTimeout = class { | ||
// TODO: handle ms === Infinity | ||
constructor(callback, ms) { | ||
@@ -37,2 +36,6 @@ this.callback = callback; | ||
function setupTimeout(f, ms) { | ||
if (ms === Infinity) { | ||
return () => { | ||
}; | ||
} | ||
let handle = setTimeout(f, ms); | ||
@@ -39,0 +42,0 @@ return () => { |
// src/utils.ts | ||
var PauseableTimeout = class { | ||
// TODO: handle ms === Infinity | ||
constructor(callback, ms) { | ||
@@ -37,2 +36,6 @@ this.callback = callback; | ||
function setupTimeout(f, ms) { | ||
if (ms === Infinity) { | ||
return () => { | ||
}; | ||
} | ||
let handle = setTimeout(f, ms); | ||
@@ -39,0 +42,0 @@ return () => { |
// src/utils.ts | ||
var PauseableTimeout = class { | ||
// TODO: handle ms === Infinity | ||
constructor(callback, ms) { | ||
@@ -37,2 +36,6 @@ this.callback = callback; | ||
function setupTimeout(f, ms) { | ||
if (ms === Infinity) { | ||
return () => { | ||
}; | ||
} | ||
let handle = setTimeout(f, ms); | ||
@@ -39,0 +42,0 @@ return () => { |
{ | ||
"name": "@hiogawa/tiny-toast", | ||
"version": "0.0.1-pre.9", | ||
"version": "0.1.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
# tiny-toast | ||
Somewhat framework-agnostic simple toast UI system | ||
Simple toast UI system with framework-agnostic core module is separated. | ||
@@ -5,0 +5,0 @@ ## example |
Sorry, the diff of this file is not supported yet
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
73897
1851