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

add TS demo that attempts to get invoke types correct #7

Closed
wants to merge 2 commits into from

Commits on Jul 10, 2023

  1. types: almost, but balance returns intersection

    if you check the inferred return types for the examples in
    `figuring-out-types.ts`, you'll see that the ones that leave `options`
    totally undefined/empty for `invoke` return an intersection type
    (`string | "sim" | "rpc"`), rather than the correct `T` (ie `string`).
    chadoh committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    4056b24 View commit details
    Browse the repository at this point in the history
  2. types: try using single InvokeArgs object

    something about the presence of T but _not_ R seems to really trip up
    the type inference
    chadoh committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    b514667 View commit details
    Browse the repository at this point in the history