Skip to content
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

error TS1016: A required parameter cannot follow an optional parameter. #6

Open
filipvercauteren opened this issue Sep 14, 2021 · 0 comments

Comments

@filipvercauteren
Copy link

in the index.d.ts the class StreamChannelBroker, the method publish on line 4
publish(payload: any, maximumApproximateMessages?: number, failOnMaxMessageCount: boolean): Promise;

when using the StreamChannelBroker class in my project, I get compilation error :

node_modules/redis-streams-broker/index.d.ts:4:64 - error TS1016: A required parameter cannot follow an optional parameter.

4 publish(payload: any, maximumApproximateMessages?: number, failOnMaxMessageCount: boolean): Promise;
~~~~~~~~~~~~~~~~~~~~~

Found 1 error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant