Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript typings only allow for logging of strings #38

Closed
matchai opened this issue Feb 5, 2019 · 0 comments
Closed

TypeScript typings only allow for logging of strings #38

matchai opened this issue Feb 5, 2019 · 0 comments

Comments

@matchai
Copy link

matchai commented Feb 5, 2019

Version

v2.1.0

Reproduction link

https://codesandbox.io/s/r4kk7o5jl4?module=%2Fsrc%2Findex.ts&view=editor

Steps to reproduce

  1. Create a TypeScript project.
  2. Try logging an Error, number, or object.

What is expected ?

Consola types support logging with "any".

What is actually happening?

Consola only supports the string type.

This bug report is available on Nuxt community (#c45)
@ghost ghost added the cmty:bug-report label Feb 5, 2019
matchai pushed a commit to matchai/consola that referenced this issue Feb 5, 2019
@pi0 pi0 closed this as completed in #39 Feb 5, 2019
pi0 pushed a commit that referenced this issue Feb 5, 2019
Consola supports logging for all types. Updates typings to allow `message` to be of type `any`.

Closes #38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant