You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error TS2345: Argument of type 'UDPTransport' is not assignable to parameter of type 'TransportStream'.
Type 'UDPTransport' is missing the following properties from type 'TransportStream': writable, writableEnded, writableFinished, writableHighWaterMark, and 29 more.
Fix
The problem is that winston-transport defines the export of TransportStream via export =.
Changing the typings of udp-transport-winston/src/udp-transport.ts resolves the problem:
-import * as Transport from 'winston-transport';+import Transport = require('winston-transport');
Environment details
Steps to reproduce
Fix
The problem is that
winston-transport
defines the export ofTransportStream
viaexport =
.Changing the typings of
udp-transport-winston/src/udp-transport.ts
resolves the problem:Similar issues: googleapis/nodejs-logging-winston#129, microsoft/TypeScript#29505, googleapis/nodejs-logging-winston#342
See also: typescript documentation on AMD and CommonJS modules
The text was updated successfully, but these errors were encountered: