diff --git a/test/index.test.js b/test/index.test.js index e4fc4dc..9dd4d1b 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -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); diff --git a/types/index.d.cts b/types/index.d.cts index f1c9550..bcff282 100644 --- a/types/index.d.cts +++ b/types/index.d.cts @@ -1,4 +1,4 @@ -type ConstructorOf = { new (...args: any[]): C } +type ConstructorOf = { new (...args: any[]): C }; -declare const _default: ConstructorOf -export default _default +declare const _default: ConstructorOf; +export default _default; diff --git a/types/index.d.ts b/types/index.d.ts index f1c9550..bcff282 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,4 +1,4 @@ -type ConstructorOf = { new (...args: any[]): C } +type ConstructorOf = { new (...args: any[]): C }; -declare const _default: ConstructorOf -export default _default +declare const _default: ConstructorOf; +export default _default;