Skip to content

Commit 900fe01

Browse files
committed
Added proper Exports
1 parent 71f9d89 commit 900fe01

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ class Codebolt {
9797
debug=debug;
9898
}
9999

100-
// export default new Codebolt();
100+
export default new Codebolt();
101101

102-
module.exports = new Codebolt();
102+
// module.exports = new Codebolt();

src/modules/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { EventEmitter } from 'events';
55
/**
66
* CustomEventEmitter class that extends the Node.js EventEmitter class.
77
*/
8-
class CustomEventEmitter extends EventEmitter {}
8+
export class CustomEventEmitter extends EventEmitter {}
99

1010
/**
1111
* Chat module to interact with the WebSocket server.

src/modules/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import cbws from './websocket';
22

3-
enum logType{
3+
export enum logType{
44
info="info",
55
error="error",
66
warning="warning"

src/modules/terminal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { EventEmitter } from 'events';
44
/**
55
* CustomEventEmitter class that extends the Node.js EventEmitter class.
66
*/
7-
class CustomEventEmitter extends EventEmitter {}
7+
export class CustomEventEmitter extends EventEmitter {}
88
/**
99
* A module for executing commands in a terminal-like environment via WebSocket.
1010
*/

0 commit comments

Comments
 (0)