Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to ts #3

Merged
merged 5 commits into from
Jun 23, 2020
Merged

Migrate to ts #3

merged 5 commits into from
Jun 23, 2020

Conversation

veseo
Copy link
Contributor

@veseo veseo commented Jun 19, 2020

No description provided.

src/AbstractLogger.ts Outdated Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
src/AbstractLogger.ts Outdated Show resolved Hide resolved
src/LoggerFactory.ts Outdated Show resolved Hide resolved
src/LoggerFactory.ts Outdated Show resolved Hide resolved
src/AbstractLogger.ts Outdated Show resolved Hide resolved
src/AbstractLogger.ts Outdated Show resolved Hide resolved
src/AbstractLogger.ts Outdated Show resolved Hide resolved
src/AbstractLogger.ts Outdated Show resolved Hide resolved
src/AbstractLogger.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,19 @@
import ConsoleLogger from './adapters/ConsoleLogger';
import AbstractLogger from './AbstractLogger';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have an AbstractLogger AND a ConsoleLogger if we're going to be dependent on both? The actual logger implementation should be dependency-injected at construction-time. Otherwise it doesn't make much sense to have it split into an "abstract" class and an implementation class.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, removed the redundant explicit return type.

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/example.ts Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
src/LoggerFactory.ts Outdated Show resolved Hide resolved
src/Logger.ts Outdated Show resolved Hide resolved
src/Logger.ts Outdated Show resolved Hide resolved
src/LoggerFactory.ts Outdated Show resolved Hide resolved
src/Logger.ts Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
@tecs tecs merged commit ef3d4dc into LuckboxGG:master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants