Skip to content

Bug: [BUG] IMeta don't export #219

@gayratv

Description

@gayratv

Describe the bug
TS2305: Module '"tslog"' has no exported member 'IMeta'.

To Reproduce
Steps to reproduce the behavior:

copy code from documentation:

import { Logger, IMeta } from 'tslog';
const logger = new Logger({
  name: 'myLogger',
  type: 'pretty',
  overwrite: {
    formatMeta: (meta?: IMeta) => {
      // format LogObj meta object to a string and return it
      console.log(meta);
      return 'aaa';
    },
  },
});

logger.info('asdasd');

Expected behavior
no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions