Skip to content

Commit 212ffb7

Browse files
authored
Fix TypeScript types (#1)
The correct way to type `module.exports =`, is using the TypeScript syntax `export =`. For CJS `export default` in TypeScript represents `module.exports.default`.
1 parent 01a82cb commit 212ffb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export default function detach(buf: ArrayBuffer | ArrayBufferView): void;
1+
declare function detach(buf: ArrayBuffer | ArrayBufferView): void;
2+
3+
export = detach;

0 commit comments

Comments
 (0)