UNPKG
web-background
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Running background in browser Worker
github.com/d0hyeon/web-background
d0hyeon/web-background
web-background
/
dist
/
modules
/
UtilWorker.d.ts
6 lines
(5 loc)
•
265 B
TypeScript
View Raw
1
2
3
4
5
6
import
{
TypedWorker
}
from
"./TypedWorker"
;
export
declare
class
UtilWorker
<
Payload
=
never
,
Result
=
void
>
extends
TypedWorker
<
Payload
,
Result
> {
constructor
(
scriptURL
:
string
| URL,
options
?:
WorkerOptions
);
request
(
payload
:
Payload
):
Promise
<
Result
>; }