Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve type definitions for config callbacks#973

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Munter wants to merge1 commit intoBlizzard:master
base:master
Choose a base branch
Loading
fromreflagcom:stricter-config-callback-types

Conversation

@Munter
Copy link

When working with strict type checking in typescript, the callbacksdr_cb,rebalance_cb andoffset_commit_cb are not sufficiently typed, and even the examples given in the README are throwing type errors.

This PR defines strict types for these callbacks.

I have done my best to back track the types from theEventListenerMap forrebalance,offset.commit anddelivery-report

Caveat 1: I have not been able to build the project locally, so these changes are made based on the installed package from npm inside a project that consumes node-rdkafka

Caveat 2:. In my project, I am currently only usingrebalance_cb, so the others have been harder to check.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@Munter

[8]ページ先頭

©2009-2025 Movatter.jp