-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add types #18
Comments
Hey @Sytten, thanks for bringing this up and suggesting the fix! I have already added some comments there. |
Hey @smusali , any update on this? |
Like I said in the Pr I do not have the bandwidth nor the interest to do another revision of it. It is better that someone from logdna does it so it respects their standard. |
Using the old const LogdnaWinston = require('logdna-winston');
const logger = winston.createLogger({
level: 'info,
transports: [],
});
const options = {
key: '...',
app: '...'
};
logger.add(new LogdnaWinston(options)); |
I had to make my own types for this package, just create a declare module 'logdna-winston' {
import TransportStream, { TransportStreamOptions } from 'winston-transport'
import { ConstructorOptions } from '@logdna/logger'
type LogDNATransportOptions =
Omit<ConstructorOptions, 'level'> &
TransportStreamOptions & {
key?: string
}
class LogDNATransport extends TransportStream {
constructor(options: LogDNATransportOptions)
}
export = LogDNATransport
} |
Hi!
I am using logdna in a typescript project, would it possible to create the
.d.ts
files to help us out there?Thanks!
The text was updated successfully, but these errors were encountered: