From 2c081c8b174313f86708201fe9645a6a412696d9 Mon Sep 17 00:00:00 2001 From: Amy Yan Date: Mon, 6 May 2024 12:22:59 +1000 Subject: [PATCH] fix: moved `CommandInbox` and `CommandOutbox` to `index.ts`s --- src/notifications/inbox/CommandInbox.ts | 17 ----------------- src/notifications/inbox/index.ts | 18 +++++++++++++++++- src/notifications/outbox/CommandOutbox.ts | 17 ----------------- src/notifications/outbox/index.ts | 18 +++++++++++++++++- 4 files changed, 34 insertions(+), 36 deletions(-) delete mode 100644 src/notifications/inbox/CommandInbox.ts delete mode 100644 src/notifications/outbox/CommandOutbox.ts diff --git a/src/notifications/inbox/CommandInbox.ts b/src/notifications/inbox/CommandInbox.ts deleted file mode 100644 index 3783ebf4..00000000 --- a/src/notifications/inbox/CommandInbox.ts +++ /dev/null @@ -1,17 +0,0 @@ -import CommandClear from './CommandClear'; -import CommandRead from './CommandRead'; -import CommandRemove from './CommandRemove'; -import CommandPolykey from '../../CommandPolykey'; - -class CommandInbox extends CommandPolykey { - constructor(...args: ConstructorParameters) { - 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; diff --git a/src/notifications/inbox/index.ts b/src/notifications/inbox/index.ts index 629e1d46..3783ebf4 100644 --- a/src/notifications/inbox/index.ts +++ b/src/notifications/inbox/index.ts @@ -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) { + 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; diff --git a/src/notifications/outbox/CommandOutbox.ts b/src/notifications/outbox/CommandOutbox.ts deleted file mode 100644 index 5c3fbe96..00000000 --- a/src/notifications/outbox/CommandOutbox.ts +++ /dev/null @@ -1,17 +0,0 @@ -import CommandClear from './CommandClear'; -import CommandRead from './CommandRead'; -import CommandRemove from './CommandRemove'; -import CommandPolykey from '../../CommandPolykey'; - -class CommandOutbox extends CommandPolykey { - constructor(...args: ConstructorParameters) { - 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; diff --git a/src/notifications/outbox/index.ts b/src/notifications/outbox/index.ts index ff65853b..5c3fbe96 100644 --- a/src/notifications/outbox/index.ts +++ b/src/notifications/outbox/index.ts @@ -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) { + 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;