diff --git a/index.d.ts b/index.d.ts index f1c9550..1afb995 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1 @@ -type ConstructorOf = { new (...args: any[]): C } - -declare const _default: ConstructorOf -export default _default +export = Worker; diff --git a/package.json b/package.json index 4e33417..f5e0d29 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "exports": { "browser": "./cjs/browser.js", "node": "./cjs/node.js", - "default": "./cjs/node.js" + "default": "./cjs/node.js", + "types": "./index.d.ts" }, "types": "index.d.ts", "files": [