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
feat(typing): improving @types for AppenderModule #1079
Conversation
Hi @nomiddlename , any chance this could be merged? |
Hi @nicobao - I've given you permission to merge this PR yourself, let me know if you need any help. As for the correct type to use for ConfigParam, log4js was written way before typescript became popular and retro-fitting types onto it can be a bit tricky. From memory, I think it is an object with a couple of fields like |
Thank you for your reply. |
However, I don't have permission to merge the PR :( |
The invitation to join the log4js org is only valid for 7 days. I've sent you another. |
It's weird, I don't see anything on GitHub related to invitation to log4js-node organization. No email, no app notification and nothing in "organization" tab. |
My bad, it was in spam & I was checking wrong address's spam 😅 |
Are you sure these types are correct? See #1155 |
Hi, Edit: of course depends on what @peteriman thinks. If @glasser you can help us improving the types it would be even better. I look at it further this evening. |
Thanks! I appreciate trying to improve the ability to use TypeScript and I'm sure we can get it to a solid state. It seems like @nicobao is best suited to make this improvement since @peteriman understands log4js and I understand TypeScript but it looks like you understand both. I'll file a quick PR that just drops the AppenderGenerator type but I really can't promise it's accurate without understanding log4js deeper! |
@glasser I introduced the bug, so it is my responsibility to fix now. I will take care of it. Thank you for reporting the issue! Of course, any help is always appreciated. |
Hi, I've rebased your work. I looked at it shortly but didn't have much time this evening. |
Because I've rebased be wary of the state of your local repository. Probably better to start by running a |
Closes #1078
I need help for typing the
ConfigParam
interface. Do you know what are the relevant types to add? Feel free to edit the PR.