baryon/tracer

Example of how to use tracer with TypeScript

Open

#139 aberto em 20 de mai. de 2023

Ver no GitHub
 (3 comments) (1 reaction) (0 assignees)JavaScript (1.137 stars) (124 forks)batch import
help wanted

Description

I see type definitions in the package, but when I try to import and use this way:

import { colorConsole } from 'tracer'

const logger = colorConsole({})
console.error('some error')

It says Property 'error' does not exist on type 'Logger<"error">.

Can you provide some simple example of how to properly import and use tracer with TypeScript?

Thanks!

Guia do colaborador