Skip to content

Types for winston-syslog #1574

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

Closed
1 of 2 tasks
uneeb123 opened this issue Jan 24, 2019 · 2 comments
Closed
1 of 2 tasks

Types for winston-syslog #1574

uneeb123 opened this issue Jan 24, 2019 · 2 comments

Comments

@uneeb123
Copy link

uneeb123 commented Jan 24, 2019

Please tell us about your environment:

  • winston version?
    • winston@2
    • winston@3 3.1.0
  • node -v outputs: v8.11.4
  • Operating System? macOS
  • Language? TypeScript 3.0.3

What is the problem?

Initializing winston.transports.Syslog errors out saying:

Property 'Syslog' does not exist on type 'Transports'

What do you expect to happen instead?

It should use the syslog type that is defined here

Other information

Versions:

winston: 3.1.0
winston-syslog: 2.0.0
@types/winston-syslog: 2.0.1
@indexzero
Copy link
Member

Please open this issue on winston-syslog.

@uneeb123
Copy link
Author

uneeb123 commented Jan 29, 2019

If I understand correctly, the types are missing on the Transports interface. Aren't the changes required on your end?

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

No branches or pull requests

2 participants