mirror of
https://github.com/developit/web-worker.git
synced 2026-01-25 14:10:20 +00:00
linting
This commit is contained in:
parent
6a1c368141
commit
da61ae6ac0
@ -52,7 +52,7 @@ test.serial('postMessage', async t => {
|
||||
await sleep(500);
|
||||
|
||||
t.is(worker.events.length, 2, 'should have received two message responses');
|
||||
|
||||
|
||||
const first = worker.events[0];
|
||||
t.is(first.data[0], 'received onmessage');
|
||||
t.assert(Math.abs(timestamp - first.data[1]) < 500);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
type ConstructorOf<C> = { new (...args: any[]): C }
|
||||
type ConstructorOf<C> = { new (...args: any[]): C };
|
||||
|
||||
declare const _default: ConstructorOf<Worker>
|
||||
export default _default
|
||||
declare const _default: ConstructorOf<Worker>;
|
||||
export default _default;
|
||||
|
||||
6
types/index.d.ts
vendored
6
types/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
type ConstructorOf<C> = { new (...args: any[]): C }
|
||||
type ConstructorOf<C> = { new (...args: any[]): C };
|
||||
|
||||
declare const _default: ConstructorOf<Worker>
|
||||
export default _default
|
||||
declare const _default: ConstructorOf<Worker>;
|
||||
export default _default;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user