Skip to content

Commit

Permalink
refactor: enhance code implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken committed Jun 18, 2020
1 parent 65c42a3 commit 9ae0281
Show file tree
Hide file tree
Showing 7 changed files with 129 additions and 174 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"extends": "@slimio/eslint-config",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"lines-between-class-members": "off"
}
}
9 changes: 6 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ declare class Core {
addons: Map<string, Addon>;
config: Config<Core.AddonsCFG>;
silent: boolean;
logger: Logger;
readonly isStarted: boolean;
private hasBeenStarted: boolean;
private logger: Logger;

static DEFAULT_CONFIGURATION: Core.CFG;
static DEFAULT_SCHEMA: object;
Expand All @@ -24,8 +26,9 @@ declare class Core {
private setupAddonListener(addon: Addon): Promise<Addon>;
private setupAddonConfiguration(addonName: string, newConfig: Core.AddonsCFG): void;
searchForLockedAddons(addonName: string): IterableIterator<string>;
initialize(): Promise<this>;
exit(): Promise<void>;

start(): Promise<this>;
stop(): Promise<this>;
}

/**
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"@slimio/ipc": "^0.2.1",
"@slimio/is": "^1.5.1",
"@slimio/logger": "^0.1.2",
"@slimio/oop": "^1.0.0",
"@slimio/safe-emitter": "^1.1.0",
"@slimio/scheduler": "^0.8.0",
"@slimio/unit-testing": "^1.0.0",
Expand Down
Loading

0 comments on commit 9ae0281

Please sign in to comment.