baryon/tracer

Example of how to use tracer with TypeScript

Open

#139 创建于 2023年5月20日

在 GitHub 查看
 (3 评论) (1 反应) (0 负责人)JavaScript (124 fork)batch import
help wanted

仓库指标

Star
 (1,137 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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!

贡献者指南