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

IVector<T>, etc. function arguments don't allow arrays as arguments in generated TypeScript type definitions #177

Open
dunhor opened this issue Feb 10, 2022 · 0 comments
Labels
bug Something isn't working typescript Bugs/issues/feature asks for typescript generation

Comments

@dunhor
Copy link
Member

dunhor commented Feb 10, 2022

E.g. the following declaration:

static Windows.Foundation.Collections.IVector<Boolean> ReturnSameBoolVector(Windows.Foundation.Collections.IVector<Boolean> vector);

gets projected as:

public static returnSameBoolVector(vector: Windows.Foundation.Collections.IVector<boolean>): Windows.Foundation.Collections.IVector<boolean>;

This should presumably be:

public static returnSameBoolVector(vector: Windows.Foundation.Collections.IVector<boolean> | boolean[]): Windows.Foundation.Collections.IVector<boolean>;

because we allow arrays as arguments to functions that expect IVector<T>/IVectorView<T>/IEnumerable<T>

@dunhor dunhor added bug Something isn't working typescript Bugs/issues/feature asks for typescript generation labels Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working typescript Bugs/issues/feature asks for typescript generation
Projects
None yet
Development

No branches or pull requests

1 participant