Skip to content
This repository was archived by the owner on Oct 18, 2022. It is now read-only.

Commit b7068a5

Browse files
committed
style: Make dummy export really export nothing
I vaguely remember seeing this trick in a GitHub issue thread, but I can't recall where. A bit of searching gave me this: microsoft/TypeScript#25386 (comment) ...but I cannot verify that @Andy-MS came up with this trick.
1 parent db35be0 commit b7068a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
*/
1414

1515
// Dummy export to make TypeScript treat this file as a module.
16-
export default undefined;
16+
export {};

0 commit comments

Comments
 (0)