Skip to content

Commit 00c238e

Browse files
committed
Export the WinRegLib class just in case
1 parent e657ce4 commit 00c238e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/index.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ export type RegistryKey = {
3535
};
3636

3737
/**
38-
* The `winreglib` API and debug log emitter.
39-
*
40-
* @type {EventEmitter}
41-
* @emits {log} Emits a debug log message.
38+
* Loads the `winreglib` native module and provides an API for interacting
39+
* with the Windows registry.
4240
*/
43-
class WinRegLib extends EventEmitter {
41+
export class WinRegLib extends EventEmitter {
4442
nss: Record<string, Logger> = {};
4543

4644
constructor() {
@@ -108,4 +106,10 @@ class WinRegLib extends EventEmitter {
108106
}
109107
}
110108

109+
/**
110+
* The `winreglib` API and debug log emitter.
111+
*
112+
* @type {EventEmitter}
113+
* @emits {log} Emits a debug log message.
114+
*/
111115
export default new WinRegLib();

0 commit comments

Comments
 (0)