Skip to content

Commit

Permalink
fix: moved CommandInbox and CommandOutbox to index.tss
Browse files Browse the repository at this point in the history
  • Loading branch information
amydevs committed May 6, 2024
1 parent 8f06b4b commit 2c081c8
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 36 deletions.
17 changes: 0 additions & 17 deletions src/notifications/inbox/CommandInbox.ts

This file was deleted.

18 changes: 17 additions & 1 deletion src/notifications/inbox/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
export { default } from './CommandInbox';
import CommandClear from './CommandClear';
import CommandRead from './CommandRead';
import CommandRemove from './CommandRemove';
import CommandPolykey from '../../CommandPolykey';

class CommandInbox extends CommandPolykey {
constructor(...args: ConstructorParameters<typeof CommandPolykey>) {
super(...args);
this.name('inbox');
this.description('Notifications Inbox Operations');
this.addCommand(new CommandClear(...args));
this.addCommand(new CommandRead(...args));
this.addCommand(new CommandRemove(...args));
}
}

export default CommandInbox;
17 changes: 0 additions & 17 deletions src/notifications/outbox/CommandOutbox.ts

This file was deleted.

18 changes: 17 additions & 1 deletion src/notifications/outbox/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
export { default } from './CommandOutbox';
import CommandClear from './CommandClear';
import CommandRead from './CommandRead';
import CommandRemove from './CommandRemove';
import CommandPolykey from '../../CommandPolykey';

class CommandOutbox extends CommandPolykey {
constructor(...args: ConstructorParameters<typeof CommandPolykey>) {
super(...args);
this.name('outbox');
this.description('Notifications Outbox Operations');
this.addCommand(new CommandClear(...args));
this.addCommand(new CommandRead(...args));
this.addCommand(new CommandRemove(...args));
}
}

export default CommandOutbox;

0 comments on commit 2c081c8

Please sign in to comment.