Skip to content

Commit

Permalink
Export IMeta, fix #219
Browse files Browse the repository at this point in the history
  • Loading branch information
terehov committed Mar 2, 2023
1 parent 3d3fb21 commit b187106
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/nodejs/index2.ts
@@ -1,6 +1,4 @@
import { Logger, BaseLogger } from "../../src/index.js";

import { formatValue } from "../../src/runtime/browser/util.inspect.polyfil";
import { Logger, BaseLogger, IMeta } from "../../src/index.js";

const defaultLogObject: {
name: string;
Expand Down Expand Up @@ -109,3 +107,5 @@ function createReadonlyError(message: string, property: string) {
const e = createReadonlyError("message", "property");

logger.error(e);

///////////////////////////
4 changes: 2 additions & 2 deletions src/index.ts
@@ -1,5 +1,5 @@
import { BaseLogger, ILogObjMeta, ISettingsParam, ILogObj } from "./BaseLogger.js";
export { ISettingsParam, BaseLogger, ILogObj };
import { BaseLogger, ILogObjMeta, ISettingsParam, ILogObj, IMeta } from "./BaseLogger.js";
export { ISettingsParam, BaseLogger, ILogObj, IMeta };

export class Logger<LogObj> extends BaseLogger<LogObj> {
constructor(settings?: ISettingsParam<LogObj>, logObj?: LogObj) {
Expand Down
1 change: 1 addition & 0 deletions src/interfaces.ts
@@ -1,4 +1,5 @@
import { IMeta, InspectOptions } from "./runtime/nodejs/index.js";
export { IMeta, InspectOptions };

export type TStyle =
| null
Expand Down

0 comments on commit b187106

Please sign in to comment.