Skip to content

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

Open

Description

@shBLOCK

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.)

Activity

  1. rubensworks commented on Jan 10, 2025

    @rubensworks
    Member

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

  2. added this to Features and removed this from Maintenanceon Jan 10, 2025
  3. moved this from Options to Accepted (To Do) in Featureson Jan 10, 2025
  4. changed the title [-]Impossible to call operators requiring typed lists?[/-] [+]Allow operators requiring typed lists to be called with any-lists[/+] on Jan 10, 2025
  5. rubensworks commented on Jan 10, 2025

    @rubensworks
    Member

    I've converted this into a feature request.

  6. moved this from Accepted (To Do) to In Progress in Featureson Jan 10, 2025
  7. moved this from In Progress to Accepted (To Do) in Featureson Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status
      Accepted (To Do)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions