Start a new topic

TypeScript definitions are wrong for out parameters.

Out parameters are wrapped as an object with a value property to pass "a reference". While this is all well and good (and what I expected the compiler to do), the generated TypeScript definitions for this are wrong.

    public static foo(out string res)


        res = "bar";


Would get the signature `foo(res: string)` while it should be `foo(res: {value: string})`. Even though this is not a deal breaker, it does break my type checking and forces me to introduce explicit casts to "avoid" this issue.

P.S.: Thanks for this great compiler :)

1 Comment

Thanks for reporting, actually we fixed this alreday couple weeks ago.

The coming version 1.1 released by the end of this month will fix this bug and many others.

Again thanks for reporting.

Login or Signup to post a comment