Typescript: Type 'LoggingWinston[]' is not assignable to type 'TransportStream[]'. #342
Labels
api: logging
Issues related to the googleapis/nodejs-logging-winston API.
type: question
Request for information or clarification. Not an issue.
Environment details
@google-cloud/logging-winston
version: 1.0.0Steps to reproduce
It's basically the same issue as #129.
Fix
The problem is that
winston-transport
defines the export ofTransportStream
viaexport =
.Changing the typings of
@google-cloud/logging-winston/index.d.ts
resolves the problem:See also the typescript documentation on AMD and CommonJS modules.
The text was updated successfully, but these errors were encountered: