Skip to content

Commit

Permalink
Export the WinRegLib class just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed Jul 21, 2024
1 parent e657ce4 commit 00c238e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ export type RegistryKey = {
};

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

constructor() {
Expand Down Expand Up @@ -108,4 +106,10 @@ class WinRegLib extends EventEmitter {
}
}

/**
* The `winreglib` API and debug log emitter.
*
* @type {EventEmitter}
* @emits {log} Emits a debug log message.
*/
export default new WinRegLib();

0 comments on commit 00c238e

Please sign in to comment.