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

matchai opened this Issue Feb 5, 2019 — with CMTY · 0 comments


None yet
1 participant
Copy link

matchai commented Feb 5, 2019 — with CMTY



Reproduction link

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)

@cmty cmty bot added the cmty:bug-report label Feb 5, 2019

matchai added a commit to matchai/consola that referenced this issue Feb 5, 2019

@pi0 pi0 closed this in #39 Feb 5, 2019

pi0 added a commit that referenced this issue Feb 5, 2019

fix(ts): set message type to "any" (#39)
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