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

Allow operators requiring typed lists to be called with any-lists #31

Open
shBLOCK opened this issue Jan 10, 2025 · 2 comments
Open

Allow operators requiring typed lists to be called with any-lists #31

shBLOCK opened this issue Jan 10, 2025 · 2 comments
Labels

Comments

@shBLOCK
Copy link

shBLOCK commented Jan 10, 2025

Issue type:


Question:

It seems impossible to call operators (e.g. Ingredients.withItems(items)) requiring lists of a certain type from JS? They always result in a type error (invalid_list_value_type).
Potentially related to ID not supporting list type casting. (Temporary workaround: Use ID to concat an empty typed list with the target list to "cast" it. This has to be done in the game, as JS lists are always dynamically typed.)

@rubensworks
Copy link
Member

Someone will answer your question soon. In the meantime, you might be able to get help more quickly on our Discord server.

@github-project-automation github-project-automation bot moved this to Options in Features Jan 10, 2025
@rubensworks rubensworks moved this from Options to Accepted (To Do) in Features Jan 10, 2025
@rubensworks rubensworks changed the title Impossible to call operators requiring typed lists? Allow operators requiring typed lists to be called with any-lists Jan 10, 2025
@rubensworks
Copy link
Member

I've converted this into a feature request.

@rubensworks rubensworks moved this from Accepted (To Do) to In Progress in Features Jan 10, 2025
@rubensworks rubensworks moved this from In Progress to Accepted (To Do) in Features Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Accepted (To Do)
Development

No branches or pull requests

2 participants