Skip to content

Commit

Permalink
add type
Browse files Browse the repository at this point in the history
  • Loading branch information
Shirtiny committed Apr 11, 2023
1 parent b7fdeb1 commit b9ed20c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ import { Theme } from "./style/theme";

const theme = new Theme();

const sh_log = new ShLogger();
export {
theme,
ShLogger,
css,
Logger,
LEVELS,
LoggerOption,
LoggerOptionParam,
};

export { theme, ShLogger, css, Logger, LEVELS, LoggerOption, LoggerOptionParam };

export default sh_log;
export default new ShLogger();
2 changes: 1 addition & 1 deletion src/model/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class Logger extends BaseLogger {
this.loggerOption = option;
}

setLoggerOption(option: object) {
setLoggerOption(option: LoggerOption) {
const newOption: LoggerOption = { ...this.loggerOption, ...option };
this.loggerOption = newOption;
super.baseOption = {
Expand Down

0 comments on commit b9ed20c

Please sign in to comment.