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

Can't pass an array of incoming messages to takeChannel #27

Closed
barabaiiika opened this issue Jul 21, 2021 · 0 comments
Closed

Can't pass an array of incoming messages to takeChannel #27

barabaiiika opened this issue Jul 21, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@barabaiiika
Copy link

I have a problem passing an array of incoming messages to takeChannel (return function from takeChannelCreator). But this feature is described in the documentation and jsdoc.

const getCommandsOfThirdType = execute(['THIRD_COMMAND_TYPE']);

I found a problem with double nesting in an array in the castType function if the argument inputType is an array:
let resultType = [inputType];

This can be fixed as follows:

let resultType = Array.isArray(inputType) ? inputType : [inputType];
@OliMe OliMe added the bug Something isn't working label Jul 21, 2021
@OliMe OliMe self-assigned this Jul 21, 2021
@OliMe OliMe closed this as completed in 41a7b6a Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants