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

[typescript type error] pair(ChildOf, entity) results a type error #186

Closed
asgardcitizen opened this issue Feb 5, 2025 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@asgardcitizen
Copy link

Description

 WORLD.add(e1, pair(ChildOf, e2));

gives a type error:

Argument of type 'Pair<unknown, unknown>' is not assignable to parameter of type 'Id<undefined>'.
  Type 'Pair<unknown, unknown>' is not assignable to type 'Pair<undefined, unknown>'.
    Type 'Pair<unknown, unknown>' is not assignable to type '{ readonly __nominal_Pair: unique symbol; readonly __pred: undefined; readonly __obj: unknown; }'.
      Types of property '__pred' are incompatible.
        Type 'unknown' is not assignable to type 'undefined'.ts(2345)
@asgardcitizen asgardcitizen added the bug Something isn't working label Feb 5, 2025
@EncodedVenom
Copy link
Collaborator

This seems to be a problem with an outdated types file upon further investigation. Feel free to reopen if this is happening on the latest version.

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